[Collab-qa-commits] r1357 - in udd: sql udd

lucas at alioth.debian.org lucas at alioth.debian.org
Sun Dec 21 22:31:55 UTC 2008


Author: lucas
Date: 2008-12-21 22:31:55 +0000 (Sun, 21 Dec 2008)
New Revision: 1357

Modified:
   udd/sql/setup.sql
   udd/udd/ubuntu_bugs_gatherer.py
Log:
add date-left-closed to ubuntu_bugs_gatherer

Modified: udd/sql/setup.sql
===================================================================
--- udd/sql/setup.sql	2008-12-21 22:31:40 UTC (rev 1356)
+++ udd/sql/setup.sql	2008-12-21 22:31:55 UTC (rev 1357)
@@ -384,6 +384,7 @@
 date_fix_released text,
 date_left_new text,
 date_triaged text,
+date_left_closed text,
 watch text,
 reporter_login text,
 reporter_name text,

Modified: udd/udd/ubuntu_bugs_gatherer.py
===================================================================
--- udd/udd/ubuntu_bugs_gatherer.py	2008-12-21 22:31:40 UTC (rev 1356)
+++ udd/udd/ubuntu_bugs_gatherer.py	2008-12-21 22:31:55 UTC (rev 1357)
@@ -232,13 +232,18 @@
           time.strptime(tm['date-triaged'], "%a, %d %b %Y %H:%M:%S -0000"))
       else:
         triaged = ''
+      if tm['date-left-closed']:
+        leftclosed = time.strftime("%a, %d %b %Y %H:%M:%S +0000",
+          time.strptime(tm['date-left-closed'], "%a, %d %b %Y %H:%M:%S -0000"))
+      else:
+        leftclosed = ''
       # check for missing headers
-      s = set(tm.keys()) - set(['task', 'reporter', 'assignee', 'status', 'date-created', 'importance', 'component', 'milestone', 'date-assigned', 'date-closed', 'date-incomplete', 'date-confirmed', 'date-inprogress', 'date-fix-committed', 'date-fix-released', 'watch', 'date-left-new', 'date-triaged'])
+      s = set(tm.keys()) - set(['task', 'reporter', 'assignee', 'status', 'date-created', 'importance', 'component', 'milestone', 'date-assigned', 'date-closed', 'date-incomplete', 'date-confirmed', 'date-inprogress', 'date-fix-committed', 'date-fix-released', 'watch', 'date-left-new', 'date-triaged', 'date-left-closed'])
       if len(s) > 0:
         print s
         print t
-      c.execute('insert into ubuntu_bugs_tasks values (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)', (bugno, pkg, distro,
+      c.execute('insert into ubuntu_bugs_tasks values (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)', (bugno, pkg, distro,
         tm['status'], tm['importance'], tm['component'], tm['milestone'], created,
-        assigned, closed, incomplete, confirmed, inprogress, fixcommitted, fixreleased, leftnew, triaged, tm['watch'],
+        assigned, closed, incomplete, confirmed, inprogress, fixcommitted, fixreleased, leftnew, triaged, leftclosed, tm['watch'],
         rep_login, rep_name, ass_login, ass_name))
 




More information about the Collab-qa-commits mailing list