Clarify excuse HTML for the mindays == 0 case.

bzr-import-20160707
Colin Watson 11 years ago
parent b723fec4de
commit b78c9693bc

@ -140,7 +140,9 @@ class Excuse(object):
if self.section and string.find(self.section, "/") > -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…
Cancel
Save