Commit 8b26248e authored by Andreas Valder's avatar Andreas Valder
Browse files

fixed a bug in last commit

parent 1ee9236b
......@@ -24,7 +24,6 @@ def timetable():
weekofyear = str(datetime.today().year) + "-W" + str(datetime.today().isocalendar()[1])
else:
datesweekmonday -= timedelta(days=datesweekmonday.weekday())
weekofyear = str(datesweekmonday.year) + "-W" + str(datesweekmonday.isocalendar()[1])
kw = int((datesweekmonday.date() - thisweekmonday.date()).days/7)
else:
kw=0
......@@ -34,6 +33,7 @@ def timetable():
start = date.today() - timedelta(days=date.today().weekday() -7*kw)
except:
start = date.today() - timedelta(days=date.today().weekday())
weekofyear = str(start.year) + "-W" + str(start.isocalendar()[1])
days = [{'date': start, 'lectures': [], 'atonce':0, 'index': 0 }]
earlieststart=time(23,59)
latestend=time(0,0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment