mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-18 05:51:32 +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:
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user