|
|
@ -284,12 +284,16 @@ class AgePolicy(BasePolicy):
|
|
|
|
for bounty in excuse.bounty:
|
|
|
|
for bounty in excuse.bounty:
|
|
|
|
self.log('Applying bounty for %s granted by %s: %d days' %
|
|
|
|
self.log('Applying bounty for %s granted by %s: %d days' %
|
|
|
|
(source_name, bounty, excuse.bounty[bounty]))
|
|
|
|
(source_name, bounty, excuse.bounty[bounty]))
|
|
|
|
|
|
|
|
excuse.addhtml('Required age reduced by %d days because of %s' %
|
|
|
|
|
|
|
|
(excuse.bounty[bounty], bounty))
|
|
|
|
min_days -= excuse.bounty[bounty]
|
|
|
|
min_days -= excuse.bounty[bounty]
|
|
|
|
if not hasattr(self.options, 'no_penalties') or \
|
|
|
|
if not hasattr(self.options, 'no_penalties') or \
|
|
|
|
urgency not in self.options.no_penalties:
|
|
|
|
urgency not in self.options.no_penalties:
|
|
|
|
for penalty in excuse.penalty:
|
|
|
|
for penalty in excuse.penalty:
|
|
|
|
self.log('Applying penalty for %s given by %s: %d days' %
|
|
|
|
self.log('Applying penalty for %s given by %s: %d days' %
|
|
|
|
(source_name, penalty, excuse.penalty[penalty]))
|
|
|
|
(source_name, penalty, excuse.penalty[penalty]))
|
|
|
|
|
|
|
|
excuse.addhtml('Required age increased by %d days because of %s' %
|
|
|
|
|
|
|
|
(excuse.penalty[penalty], penalty))
|
|
|
|
min_days += excuse.penalty[penalty]
|
|
|
|
min_days += excuse.penalty[penalty]
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
bounty_min_age = int(self.options.bounty_min_age)
|
|
|
|
bounty_min_age = int(self.options.bounty_min_age)
|
|
|
|