need to merge to develope to get script working with live

This commit is contained in:
Jun-te Kim 2025-03-19 14:23:31 +00:00
parent 62b8550e49
commit 6863fc98fd

View file

@ -14,7 +14,7 @@ from datetime import datetime, timedelta
def previous_monday():
today = datetime.today()
last_monday = today - timedelta(days=today.weekday() + 7) # Go back to last week's Monday
return "W.C. 03.03.2025" # Quick one off script for nic. Hopefully get 199 Do not merge!!!!
# return "W.C. 03.03.2025" # Quick one off script for nic. Hopefully get 199 Do not merge!!!!
return f"W.C. {last_monday.strftime('%d.%m.%Y')}"
WEEK_COMMENCING = os.getenv("WEEK_COMMENCING", previous_monday())