From 6c160250e8e55a328097e2744b1e1b7391c21e44 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 4 Dec 2024 16:12:10 +0100 Subject: [PATCH] WIP --- frontend/coprs_frontend/coprs/logic/builds_logic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/coprs_frontend/coprs/logic/builds_logic.py b/frontend/coprs_frontend/coprs/logic/builds_logic.py index eee0679b8..f94b48147 100644 --- a/frontend/coprs_frontend/coprs/logic/builds_logic.py +++ b/frontend/coprs_frontend/coprs/logic/builds_logic.py @@ -1458,9 +1458,9 @@ def processing_builds(cls): builds that have non-finished source status, or any non-finished existing build chroot. """ - build_ids_with_bch = db.session.query(BuildChroot.build_id).filter( + build_ids_with_bch = [x[0] for x in db.session.query(BuildChroot.build_id).filter( BuildChroot.status.in_(PROCESSING_STATES), - ) + ).all()] # skip waiting state, we need to fix issue #1539 source_states = set(PROCESSING_STATES)-{StatusEnum("waiting")} return models.Build.query.filter(and_(