From 3b24430f4f3217bf419d2b42d06f4b5435e0e57d Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Jun 27 2022 13:27:10 +0000 Subject: frontend: pagure-events: don't submit builds for disabled projects Fixes: #2228 Merges: #2229 Caused-by: 3d6f625942c38286b65f92dd0310b79e2537a3c6 --- diff --git a/frontend/coprs_frontend/pagure_events.py b/frontend/coprs_frontend/pagure_events.py index 7da8fc2..ae651b1 100755 --- a/frontend/coprs_frontend/pagure_events.py +++ b/frontend/coprs_frontend/pagure_events.py @@ -67,6 +67,8 @@ class ScmPackage(object): @classmethod def get_candidates_for_rebuild(cls, clone_url): rows = models.Package.query \ + .join(models.Copr) \ + .filter(models.Copr.deleted.is_(False)) \ .filter(models.Package.source_type.in_(SUPPORTED_SOURCE_TYPES)) \ .filter(models.Package.webhook_rebuild) \ .filter(models.Package.source_json.ilike('%' + clone_url + '%'))