This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 41164dd663 Fix dags list counts (#32579)
41164dd663 is described below
commit 41164dd663c003c6be80abdf3b2180ec930a82e4
Author: Brent Bovenzi <[email protected]>
AuthorDate: Fri Jul 14 06:25:02 2023 +0800
Fix dags list counts (#32579)
---
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 762db4759a..85375a518b 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -804,9 +804,7 @@ class Airflow(AirflowBaseView):
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()
)