mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-09 10:11:11 +00:00
Clarify excuse HTML/text for the mindays == 0 case
This commit is contained in:
parent
ec21cf1342
commit
f527835076
@ -161,7 +161,9 @@ class Excuse(object):
|
||||
if self.section and self.section.find("/") > -1:
|
||||
res = res + "<li>Section: %s\n" % (self.section)
|
||||
if self.daysold != None:
|
||||
if self.daysold < self.mindays:
|
||||
if self.mindays == 0:
|
||||
res = res + ("<li>%d days old\n" % self.daysold)
|
||||
elif self.daysold < self.mindays:
|
||||
res = res + ("<li>Too young, only %d of %d days old\n" %
|
||||
(self.daysold, self.mindays))
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user