Fix EventLocation ref

This commit is contained in:
polyfloyd 2024-09-15 22:35:59 +02:00
parent 0f47a0326f
commit 66e797b4d8

View file

@ -53,7 +53,7 @@ for page_path, value in events['results'].items():
event.add('dtstart', start_time) event.add('dtstart', start_time)
event.add('dtend', end_time) event.add('dtend', end_time)
event.add('url', value['fullurl']) event.add('url', value['fullurl'])
event['location'] = icalendar.vText(value['printouts']['Event location'][0]['fulltext']) event['location'] = icalendar.vText(value['printouts']['EventLocation'][0]['fulltext'])
if len(value['printouts']['Status']) != 0: if len(value['printouts']['Status']) != 0:
# a status is defined, see if we can parse it to a status as per RFC5545 3.8.1.11 # a status is defined, see if we can parse it to a status as per RFC5545 3.8.1.11