[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] pass parameters properly



Signed-off-by: Mark Hymers <mhy@debian.org>
---
 dak/cruft_report.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dak/cruft_report.py b/dak/cruft_report.py
index 5383114..af3a112 100755
--- a/dak/cruft_report.py
+++ b/dak/cruft_report.py
@@ -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
-- 
1.5.6.5



Reply to: