Skip to content

Commit 8b1afe2

Browse files
author
Richard Jones
committed
fixed prettification of intervals of 1 week
1 parent 3e55a5e commit 8b1afe2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

roundup/date.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: date.py,v 1.11 2001-08-15 23:43:18 richard Exp $
18+
# $Id: date.py,v 1.12 2001-08-17 03:08:11 richard Exp $
1919

2020
import time, re, calendar
2121

@@ -324,7 +324,7 @@ def pretty(self, threshold=('d', 5)):
324324
else:
325325
return '%s weeks'%int(days/7)
326326
if self.day > 7:
327-
return '%s weeks'%self.day
327+
return '1 week'
328328
if self.day > 1:
329329
return '%s days'%self.day
330330
if self.day == 1 or self.hour > 12:
@@ -376,6 +376,10 @@ def test():
376376

377377
#
378378
# $Log: not supported by cvs2svn $
379+
# Revision 1.11 2001/08/15 23:43:18 richard
380+
# Fixed some isFooTypes that I missed.
381+
# Refactored some code in the CGI code.
382+
#
379383
# Revision 1.10 2001/08/07 00:24:42 richard
380384
# stupid typo
381385
#

0 commit comments

Comments
 (0)