From b78c9693bc5a08e5b25f27892257304ea5649f08 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Wed, 25 Sep 2013 14:44:15 +0100 Subject: [PATCH] Clarify excuse HTML for the mindays == 0 case. --- excuse.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/excuse.py b/excuse.py index 9886e7f..af4cb79 100644 --- a/excuse.py +++ b/excuse.py @@ -140,7 +140,9 @@ class Excuse(object): if self.section and string.find(self.section, "/") > -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: