]> git.decadent.org.uk Git - dak.git/commitdiff
Fix SQL syntax errors
authorFrank Lichtenheld <djpig@debian.org>
Tue, 27 Oct 2009 14:28:04 +0000 (14:28 +0000)
committerFrank Lichtenheld <djpig@debian.org>
Tue, 27 Oct 2009 14:33:28 +0000 (14:33 +0000)
Signed-off-by: Frank Lichtenheld <djpig@debian.org>
dak/clean_suites.py

index 49f488d0b477c527e21a7a532400452036c93b6b..3bc42294174d66b2f45dc985f531f6b1c70679c2 100755 (executable)
@@ -211,8 +211,7 @@ def clean(now_date, delete_date, max_delete, session):
     q = session.execute("""
 SELECT df.id, s.id, f.filename FROM source s, files f, dsc_files df
   WHERE f.last_used <= :deletedate
-        AND s.file = f.id AND s.id = df.source
-        AND df.id = dsc_files.id)""", {'deletedate': delete_date})
+        AND s.file = f.id AND s.id = df.source""", {'deletedate': delete_date})
     for s in q.fetchall():
         Logger.log(["delete source", s[2]])
         if not Options["No-Action"]: