From 3ce70f930d27b0769737b841c598d192b595180c Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Wed, 17 Jun 2015 22:19:46 +0200 Subject: [PATCH] auto-decruft: Use an id rather than an ORM object in SQL Signed-off-by: Niels Thykier --- dak/auto_decruft.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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] -- 2.39.5