Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Simplify code in www #33270

Merged
merged 1 commit into from
Aug 10, 2023
Merged

Refactor: Simplify code in www #33270

merged 1 commit into from
Aug 10, 2023

Conversation

eumiro
Copy link
Contributor

@eumiro eumiro commented Aug 9, 2023

No description provided.

@boring-cyborg boring-cyborg bot added the area:webserver Webserver related Issues label Aug 9, 2023
dates = sorted({ti.execution_date for ti in task_instances})
max_date = max(ti.execution_date for ti in task_instances) if dates else None
max_date = max((ti.execution_date for ti in task_instances), default=None)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Begs the question why we needed to sort the dates in the first place. Leftover code maybe, who knows.

@potiuk potiuk merged commit 369b9bc into apache:main Aug 10, 2023
42 checks passed
@eumiro eumiro deleted the www branch August 10, 2023 17:43
ferruzzi pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Aug 17, 2023
@ephraimbuddy ephraimbuddy added this to the Airflow 2.7.1 milestone Aug 27, 2023
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label Aug 27, 2023
ephraimbuddy pushed a commit that referenced this pull request Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues type:misc/internal Changelog: Misc changes that should appear in change log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants