feluelle commented on a change in pull request #7900: Convert properties with 
query to real methods
URL: https://github.com/apache/airflow/pull/7900#discussion_r399344592
 
 

 ##########
 File path: airflow/www/views.py
 ##########
 @@ -93,7 +93,7 @@ def get_date_time_num_runs_dag_runs_form_data(request, 
session, dag):
     if dttm:
         dttm = timezone.parse(dttm)
     else:
-        dttm = dag.latest_execution_date or timezone.utcnow()
+        dttm = dag.get_latest_execution_date() or timezone.utcnow()
 
 Review comment:
   There are more of it where we can just pass the session which is better than 
recreating it, don't you think?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to