Skip to content
Snippets Groups Projects
Commit 7c56680c authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-2663: minor fix for next/current tuesday

parent 19458ea2
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ from datetime import datetime, date, timedelta, time
from lofar.sas.tmss.client.tmss_http_rest_client import TMSSsession
# by default, we start creating the reservation(s) for next tuesday and onwards.
today = date.today() + timedelta(days=2)
today = date.today()
tuesday = today + timedelta(days=1-today.weekday()) # tuesday is weekday=1
next_tuesday = tuesday + timedelta(days=7) if tuesday < today else tuesday
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment