Skip to content
Snippets Groups Projects
Commit b6a2ff77 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

fix: Conflicting variable names

parent e1b9425e
Branches
No related tags found
No related merge requests found
......@@ -57,9 +57,9 @@ else:
# Don't run if before start_date
recurring_start_date = os.getenv("RECURRING_START_DATE")
start_date = datetime.strptime(f"{year}-{recurring_start_date}", "%Y-%m-%d")
if datetime.now() <= start_date:
logging.error(f"Today is before the configured start date of {start_date}. Exiting.")
model_start_date = datetime.strptime(f"{year}-{recurring_start_date}", "%Y-%m-%d")
if datetime.now() <= model_start_date:
logging.error(f"Today is before the configured start date of {model_start_date}. Exiting.")
exit(0)
......@@ -98,7 +98,7 @@ def create_dataset():
last_final_date = file_date
if last_final_date is None or last_final_date < file_date:
start_date = datetime.strptime(start_date, "%Y-%m-%d")
start_date = model_start_date
if last_final_date is not None:
start_date = datetime.strptime(last_final_date, "%Y-%m-%d") - timedelta(days=4)
logging.info(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment