[dak/bpo] Use the database.init
Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
dak/stats.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dak/stats.py b/dak/stats.py
index ab24429..849c36b 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()
--
1.5.6.5
Reply to: