mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-10 10:51:08 +00:00
Add age changes due to penalties or bounties to the excuses output
This commit is contained in:
parent
f2f20eb460
commit
b553b205ce
@ -284,12 +284,16 @@ class AgePolicy(BasePolicy):
|
||||
for bounty in excuse.bounty:
|
||||
self.log('Applying bounty for %s granted by %s: %d days' %
|
||||
(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]
|
||||
if not hasattr(self.options, 'no_penalties') or \
|
||||
urgency not in self.options.no_penalties:
|
||||
for penalty in excuse.penalty:
|
||||
self.log('Applying penalty for %s given by %s: %d days' %
|
||||
(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]
|
||||
try:
|
||||
bounty_min_age = int(self.options.bounty_min_age)
|
||||
|
Loading…
x
Reference in New Issue
Block a user