From a4d0d5dc90348e09db42dafb4e4e6bd15ec1d202 Mon Sep 17 00:00:00 2001 From: Mike O'Connor Date: Sat, 9 Jan 2010 15:12:16 -0500 Subject: [PATCH] really don't use DBConn() in an update Signed-off-by: Mike O'Connor --- dak/dakdb/update28.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dak/dakdb/update28.py b/dak/dakdb/update28.py index 39a26801..f1c8b2fa 100755 --- a/dak/dakdb/update28.py +++ b/dak/dakdb/update28.py @@ -32,7 +32,6 @@ import psycopg2 import time from daklib.dak_exceptions import DBUpdateError from daklib.config import Config -from daklib.dakdb import DBConn ################################################################################ @@ -144,10 +143,8 @@ def do_update(self): for suite in [i.lower() for i in suites]: c.execute("SELECT id FROM suite WHERE suite_name ='%s'" % suite ) - rows = c.fetchall() - - - suite_id = DBConn().get_suite_id(suite) + suiterow = c.fetchall() + suite_id=suiterow[0] arch_list = arches(c, suite_id) arch_list = arches(c, suite_id) -- 2.39.5