Commit 580592e6 authored by Tom Kunze's avatar Tom Kunze
Browse files

server/parse_univis: Fix wrong weekday for single events

parent 71761f4d
......@@ -144,7 +144,7 @@ def _get_all_events_in_rooms(roomnumbers):
if not event.startdate.text == event.enddate.text:
print('Event without repeat over multiple days found: {}'.format(event.title.text), file=sys.stderr)
continue
weekdays = str(dateutil.parser.parse(event.startdate.text).weekday())
weekdays = str(dateutil.parser.parse(event.startdate.text).weekday() + 1)
elif event.repeat.text[0:2] == "d1" or event.repeat.text[0:2] == "bd":
weekdays = "1,2,3,4,5,6,0"
elif event.repeat.text[0:2] == "w1":
......
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