Clarify excuse HTML/text for the mindays == 0 case

pre-rebase-2016-10-25
Colin Watson 11 years ago committed by Niels Thykier
parent ec21cf1342
commit f527835076

@ -161,7 +161,9 @@ class Excuse(object):
if self.section and self.section.find("/") > -1: if self.section and self.section.find("/") > -1:
res = res + "<li>Section: %s\n" % (self.section) res = res + "<li>Section: %s\n" % (self.section)
if self.daysold != None: 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" % res = res + ("<li>Too young, only %d of %d days old\n" %
(self.daysold, self.mindays)) (self.daysold, self.mindays))
else: else:

Loading…
Cancel
Save