boushphong commented on code in PR #33778:
URL: https://github.com/apache/airflow/pull/33778#discussion_r1306477300


##########
airflow/www/views.py:
##########
@@ -835,7 +835,9 @@ def index(self):
 
             is_paused_count = dict(
                 session.execute(
-                    select(DagModel.is_paused, 
func.count(DagModel.dag_id)).group_by(DagModel.is_paused)
+                    all_dags.with_only_columns([DagModel.is_paused, 
func.count()])
+                    .where(DagModel.is_active)

Review Comment:
   You're right. I just removed the redundant where clause.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to