From c0fed78e5801f5c4d9417663b0e52e982c667a95 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Tue, 27 Oct 2009 14:50:49 +0000 Subject: [PATCH] Interpolate values properly. Signed-off-by: Chris Lamb --- dak/dakdb/update15.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dak/dakdb/update15.py b/dak/dakdb/update15.py index 475d1d34..6b2e0ee2 100644 --- a/dak/dakdb/update15.py +++ b/dak/dakdb/update15.py @@ -62,7 +62,7 @@ def do_update(self): c.execute("SELECT id FROM suite") suites = c.fetchall() for s in suites: - c.execute("INSERT INTO suite_src_formats (suite, src_format) VALUES('%s', '%s')" % (s[0], '1.0')) + c.execute("INSERT INTO suite_src_formats (suite, src_format) VALUES(%s, %s)", (s[0], '1.0')) print "Authorize all other formats on tpu, unstable & experimental by default" c.execute("SELECT id FROM suite WHERE suite_name IN ('testing-proposed-updates', 'unstable', 'experimental')") @@ -71,7 +71,7 @@ def do_update(self): formats = c.fetchall() for s in suites: for f in formats: - c.execute("INSERT INTO suite_src_formats (suite, src_format) VALUES('%s', '%s')" % (s[0], f[0])) + c.execute("INSERT INTO suite_src_formats (suite, src_format) VALUES(%s, %s)", (s[0], f[0])) c.execute("UPDATE config SET value = '15' WHERE name = 'db_revision'") self.db.commit() -- 2.39.5