From f5278350769d0feac385956509db9d2d2ff6823a Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Wed, 25 Sep 2013 14:44:15 +0100 Subject: [PATCH] Clarify excuse HTML/text for the mindays == 0 case --- excuse.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/excuse.py b/excuse.py index 6eb59af..ad47dcf 100644 --- a/excuse.py +++ b/excuse.py @@ -161,7 +161,9 @@ class Excuse(object): if self.section and self.section.find("/") > -1: res = res + "
  • Section: %s\n" % (self.section) if self.daysold != None: - if self.daysold < self.mindays: + if self.mindays == 0: + res = res + ("
  • %d days old\n" % self.daysold) + elif self.daysold < self.mindays: res = res + ("
  • Too young, only %d of %d days old\n" % (self.daysold, self.mindays)) else: