From 689f597c251aa4e08e0e9980e4a80c1e3172c5c9 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Mon, 26 Oct 2009 15:18:25 +0000 Subject: [PATCH] pass parameters properly Signed-off-by: Mark Hymers --- dak/cruft_report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dak/cruft_report.py b/dak/cruft_report.py index 53831149..af3a1125 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 -- 2.39.5