From 4521188e32795e2372394c104e75d86653b28a92 Mon Sep 17 00:00:00 2001 From: Daniel Standish <15932138+dstandish@users.noreply.github.com> Date: Tue, 27 Sep 2022 23:31:47 -0700 Subject: [PATCH] Don't iterate tis list twice for no reason (#26740) Just don't need this line. --- 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 0cf35fba3a595..8fe84189e84ee 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -3175,9 +3175,7 @@ def landing_times(self, dag_id, session=None): x=x_points[task_id], y=scale_time_units(y_points[task_id], y_unit), ) - - dates = sorted({ti.execution_date for ti in tis}) - max_date = max(ti.execution_date for ti in tis) if dates else None + max_date = max(ti.execution_date for ti in tis) if tis else None session.commit()