Skip to content

Commit

Permalink
⚡️ Fix the order of dates
Browse files Browse the repository at this point in the history
  • Loading branch information
malgorzatagwinner committed Oct 18, 2024
1 parent 7f08971 commit 97ea675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/viadot/orchestration/prefect/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ def _generate_years(
] # Reversed to ascending order
return result # noqa: RET504
if from_year and num_years:
result = [str(int(from_year) - i) for i in range(int(num_years))][
::-1
result = [
str(int(from_year) + i) for i in range(int(num_years))
] # Ascending order
return result # noqa: RET504
return []
Expand Down

0 comments on commit 97ea675

Please sign in to comment.