From c62f7fd0f84ae4970986673ae050a87a7f1c5c1c Mon Sep 17 00:00:00 2001 From: Brent Bovenzi Date: Thu, 13 Jul 2023 15:49:32 +0800 Subject: [PATCH] Fix dags list counts --- airflow/www/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/airflow/www/views.py b/airflow/www/views.py index e198e390ace7c..b5abe37cfdb17 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -797,9 +797,7 @@ def index(self): is_paused_count = dict( session.execute( - select(DagModel.is_paused, func.count(DagModel.dag_id)) - .group_by(DagModel.is_paused) - .select_from(all_dags) + select(DagModel.is_paused, func.count(DagModel.dag_id)).group_by(DagModel.is_paused) ).all() )