all repos — mycal @ 0379ac3a7a9aab19039e16e400b3d82a368a144f

private calendar anonymiser

start from beginning of week

Alan Pearce
commit

0379ac3a7a9aab19039e16e400b3d82a368a144f

parent

bccfac1c97078e65dbc84d1c4a108e2c57058917

1 file changed, 3 insertions(+), 1 deletion(-)

changed files
M mycal.pymycal.py
@@ -55,7 +55,9 @@ return dt.astimezone(tz)
@app.route('/') def index(): - start_date = datetime.combine(date.today(), time.min, tzinfo=tz) + today = date.today() + start_of_week = today - timedelta(days=today.weekday()) + start_date = datetime.combine(start_of_week, time.min, tzinfo=tz) end_date = start_date + timedelta(days=30) output = Calendar()