diff --git a/frontend/coprs_frontend/coprs/logic/builds_logic.py b/frontend/coprs_frontend/coprs/logic/builds_logic.py index eee0679b8..ac8577835 100644 --- a/frontend/coprs_frontend/coprs/logic/builds_logic.py +++ b/frontend/coprs_frontend/coprs/logic/builds_logic.py @@ -1458,9 +1458,10 @@ 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( - BuildChroot.status.in_(PROCESSING_STATES), - ) + build_ids_with_bch = [x[0] for x in db.session.query(BuildChroot.build_id).filter( + BuildChroot.status.in_(PROCESSING_STATES) + ).all()] + build_ids_with_bch = [] # skip waiting state, we need to fix issue #1539 source_states = set(PROCESSING_STATES)-{StatusEnum("waiting")} return models.Build.query.filter(and_(