From dcb895735803c1ff398704aedc5e8b4d0ab44d67 Mon Sep 17 00:00:00 2001 From: Frantisek Lachman Date: Thu, 7 Dec 2023 15:52:46 +0100 Subject: [PATCH] Do not filter out dist-git projects We do need those to be present in statistics for downstream jobs Signed-off-by: Frantisek Lachman --- packit_service/models.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/packit_service/models.py b/packit_service/models.py index 7d93bef6d..d80cf6ef5 100644 --- a/packit_service/models.py +++ b/packit_service/models.py @@ -781,7 +781,6 @@ def get_project_event_usage_numbers( PipelineModel.project_event_id == ProjectEventModel.id, ) .filter(ProjectEventModel.type == project_event_type) - .filter(GitProjectModel.instance_url != "src.fedoraproject.org") ) if datetime_from: query = query.filter(PipelineModel.datetime >= datetime_from) @@ -897,8 +896,6 @@ def get_job_usage_numbers( ) .join(job_result_model, job_result_model.id == pipeline_attribute) .filter(ProjectEventModel.type == project_event_type) - # We have all the dist git projects in because of how we parse the events. - .filter(GitProjectModel.instance_url != "src.fedoraproject.org") ) if datetime_from: query = query.filter(PipelineModel.datetime >= datetime_from)