]> err.no Git - dak/commitdiff
pass parameters properly
authorMark Hymers <mhy@debian.org>
Mon, 26 Oct 2009 15:18:25 +0000 (15:18 +0000)
committerMark Hymers <mhy@debian.org>
Mon, 26 Oct 2009 15:18:25 +0000 (15:18 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/cruft_report.py

index 538311496dd1b297efeeaf3abf801f0f58357429..af3a1125db7a8f6c7c44b1ceb73a3a1cdd310a9a 100755 (executable)
@@ -65,7 +65,8 @@ def add_nbs(nbs_d, source, version, package, suite_id, session):
     else:
         q = session.execute("""SELECT b.id FROM binaries b, bin_associations ba
                                 WHERE ba.bin = b.id AND ba.suite = :suite_id
-                                  AND b.package = suite_id LIMIT 1""" % (suite_id, package))
+                                  AND b.package = :package LIMIT 1""" % {'suite_id': suite_id,
+                                                                         'package': package})
         if not q.fetchall():
             no_longer_in_suite[package] = ""
             return