mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-08 11:17:29 +00:00
fix the monday
This commit is contained in:
parent
28a2468cf8
commit
b45cb03356
1 changed files with 2 additions and 2 deletions
|
|
@ -11,12 +11,12 @@ from etl.validator.validator import DomnaSharePointValidator
|
|||
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
def this_weeks_monday():
|
||||
def previous_monday():
|
||||
today = datetime.today()
|
||||
monday = today - timedelta(days=today.weekday()) # weekday() = 0 for Monday
|
||||
return f"W.C. {monday.strftime('%d.%m.%Y')}"
|
||||
|
||||
WEEK_COMMENCING = os.getenv("WEEK_COMMENCING", this_weeks_monday())
|
||||
WEEK_COMMENCING = os.getenv("WEEK_COMMENCING", previous_monday())
|
||||
|
||||
class SharePointInstaller(Enum):
|
||||
# https//{tenant}.sharepoint.com/sites/{site}/_api/site/id
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue