changeset 234:0dfe39b4fa17

fixed prettification of intervals of 1 week
author Richard Jones <richard@users.sourceforge.net>
date Fri, 17 Aug 2001 03:08:11 +0000
parents 3430c76a52b0
children d7d358408537
files roundup/date.py
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/date.py	Fri Aug 17 00:09:39 2001 +0000
+++ b/roundup/date.py	Fri Aug 17 03:08:11 2001 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: date.py,v 1.11 2001-08-15 23:43:18 richard Exp $
+# $Id: date.py,v 1.12 2001-08-17 03:08:11 richard Exp $
 
 import time, re, calendar
 
@@ -324,7 +324,7 @@
             else:
                 return '%s weeks'%int(days/7)
         if self.day > 7:
-            return '%s weeks'%self.day
+            return '1 week'
         if self.day > 1:
             return '%s days'%self.day
         if self.day == 1 or self.hour > 12:
@@ -376,6 +376,10 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.11  2001/08/15 23:43:18  richard
+# Fixed some isFooTypes that I missed.
+# Refactored some code in the CGI code.
+#
 # Revision 1.10  2001/08/07 00:24:42  richard
 # stupid typo
 #

Roundup Issue Tracker: http://roundup-tracker.org/