uranusjr commented on code in PR #33858:
URL: https://github.com/apache/airflow/pull/33858#discussion_r1309971825


##########
airflow/www/views.py:
##########
@@ -3796,11 +3796,11 @@ def historical_metrics_data(self):
             data = {
                 "dag_run_types": {
                     **{dag_run_type.value: 0 for dag_run_type in DagRunType},
-                    **{run_type: sum_value for run_type, sum_value in 
dag_run_types},
+                    **dag_run_types,
                 },
                 "dag_run_states": {
                     **{dag_run_state.value: 0 for dag_run_state in 
DagRunState},
-                    **{run_state: sum_value for run_state, sum_value in 
dag_run_states},
+                    **dict(dag_run_states),

Review Comment:
   ```suggestion
                       **dag_run_states,
   ```



-- 
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