diff scripts/roundup-reminder @ 4658:838e0e0c5e9f

Incorrect 'Created' value in round-reminder script (issue2550769)
author John Kristensen <john@jerrykan.com>
date Mon, 27 Aug 2012 23:25:56 +1000
parents 5db2dfff85d8
children c75defc1c2f0
line wrap: on
line diff
--- a/scripts/roundup-reminder	Mon Aug 27 23:19:32 2012 +1000
+++ b/scripts/roundup-reminder	Mon Aug 27 23:25:56 2012 +1000
@@ -105,8 +105,6 @@
             print >>body, '    ', db.priority.get(priority,'name')
         # pretty creation
         creation = (creation_date - date.Date('.')).pretty()
-        if creation is None:
-            creation = creation_date.pretty()
         activity = (activity_date - date.Date('.')).pretty()
         title = db.issue.get(issue_id, 'title')
         if len(title) > 42:
@@ -143,9 +141,7 @@
         if (priority != old_priority):
            old_priority = priority
            print >>body, '<tr><td>-></td><td>-></td><td>-></td><td><b>%s</b></td></tr>'%db.priority.get(priority,'name')
-        creation = (date.Date('.') - creation_date).pretty()
-        if creation is None:
-            creation = (creation_date - date.Date('.')).pretty()
+        creation = (creation_date - date.Date('.')).pretty()
         title = db.issue.get(issue_id, 'title')
         issue_id = '<a href="%sissue%s">%s</a>'%(db.config.TRACKER_WEB,
             issue_id, issue_id)

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