From: Frank Lichtenheld Date: Tue, 27 Oct 2009 14:28:04 +0000 (+0000) Subject: Fix SQL syntax errors X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c865adbb771ba9a275602ad2960f1189b7dac336;p=dak.git Fix SQL syntax errors Signed-off-by: Frank Lichtenheld --- diff --git a/dak/clean_suites.py b/dak/clean_suites.py index 49f488d0..3bc42294 100755 --- a/dak/clean_suites.py +++ b/dak/clean_suites.py @@ -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"]: