From: Niels Thykier Date: Wed, 17 Jun 2015 20:19:46 +0000 (+0200) Subject: auto-decruft: Use an id rather than an ORM object in SQL X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=3ce70f930d27b0769737b841c598d192b595180c;p=dak.git auto-decruft: Use an id rather than an ORM object in SQL Signed-off-by: Niels Thykier --- diff --git a/dak/auto_decruft.py b/dak/auto_decruft.py index 62996e2b..1586fe10 100644 --- a/dak/auto_decruft.py +++ b/dak/auto_decruft.py @@ -76,7 +76,8 @@ def compute_sourceless_groups(suite_id, session): """"" rows = query_without_source(suite_id, session) message = '[auto-cruft] no longer built from source, no reverse dependencies' - arch_all_id_tuple = tuple([get_architecture('all', session=session)]) + arch = get_architecture('all', session=session) + arch_all_id_tuple = tuple([arch.arch_id]) arch_all_list = ["all"] for row in rows: package = row[0]