mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-08 11:17:29 +00:00
need to merge to develope to get script working with live
This commit is contained in:
parent
62b8550e49
commit
6863fc98fd
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue