From 97ea675e638b376a5374731755ca4c26f26b9d9f Mon Sep 17 00:00:00 2001 From: malgorzatagwinner Date: Fri, 18 Oct 2024 13:44:02 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Fix=20the=20order=20of=20d?= =?UTF-8?q?ates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/viadot/orchestration/prefect/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/viadot/orchestration/prefect/utils.py b/src/viadot/orchestration/prefect/utils.py index da1449db0..89cf955bf 100644 --- a/src/viadot/orchestration/prefect/utils.py +++ b/src/viadot/orchestration/prefect/utils.py @@ -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 []