From 45ea1710ee4ca9cd3bb2a63dfd3abfe4c131cd1c Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 19 Feb 2009 23:22:39 +0100 Subject: [PATCH] Use the database.init Signed-off-by: Joerg Jaspert --- dak/stats.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.39.5