From: Joerg Jaspert Date: Thu, 19 Feb 2009 22:22:39 +0000 (+0100) Subject: Use the database.init X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=45ea1710ee4ca9cd3bb2a63dfd3abfe4c131cd1c;p=dak.git Use the database.init Signed-off-by: Joerg Jaspert --- diff --git a/dak/stats.py b/dak/stats.py index ab244292..849c36b2 100755 --- a/dak/stats.py +++ b/dak/stats.py @@ -180,7 +180,7 @@ SELECT suite, count(suite) FROM src_associations GROUP BY suite;""") for suite in suite_list: suite_id = suite_ids[suite] suite_arches[suite_id] = {} - for arch in database.get_suite_architectures(suite): + for arch in database.get_suite_architectures(suite_id): suite_arches[suite_id][arch] = "" suite_id_list.append(suite_id) output_list = [ output_format(i) for i in suite_list ] @@ -235,6 +235,7 @@ def main (): mode = args[0].lower() projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"], int(Cnf["DB::Port"])) + database.init(Cnf, projectB) if mode == "arch-space": per_arch_space_use()