bugraoz93 commented on code in PR #58352:
URL: https://github.com/apache/airflow/pull/58352#discussion_r2535406130


##########
airflow-core/src/airflow/api_fastapi/core_api/routes/ui/dags.py:
##########
@@ -191,7 +191,7 @@ def get_dags(
             DagRun.run_after,
             DagRun.start_date,
             DagRun.state,
-            DagRun.duration,
+            getattr(DagRun, "duration"),

Review Comment:
   This looks cleaner. We can also do the castings in place. My only concern 
here is with `getattr`, whether it is a good approach here



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