]> piware.de Git - bin.git/commitdiff
workitems: Overwrite data from same day
authormartin@piware.de <>
Sat, 13 Jun 2009 07:49:09 +0000 (09:49 +0200)
committermartin@piware.de <>
Sat, 13 Jun 2009 07:49:09 +0000 (09:49 +0200)
workitems.py

index b9ee19524cbeee4b42e9f6b4917b69115b86c7ac..8572a75961dd5fd505f65a817e8a868b02ee14f6 100755 (executable)
@@ -135,6 +135,9 @@ def import_lp(db, name_pattern, release):
     blueprints = get_blueprints('%s//ubuntu/%s/+specs' % (blueprints_base_url,
         opts.release), name_pattern)
 
+    cur = db.cursor()
+    cur.execute('DELETE FROM work_items WHERE date = date(CURRENT_TIMESTAMP)')
+
     for bp in blueprints:
         #print 'Checking', bp
         bpname = bp.split('/')[-1]