fix calendar script

This commit is contained in:
XenGi 2023-06-13 23:55:38 +02:00
parent 4e26fc6764
commit bc89cfbcab
Signed by: xengi
SSH key fingerprint: SHA256:EvLbWxFCtfmd+8Xa6RkzkhIga+wFkKCekfFacYVn63M
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
-b https://staging.berlin.ccc.de/ --baseURL=https://staging.berlin.ccc.de/

View file

@ -55,7 +55,7 @@ def find_events(icsfilestr, start, end, num):
for event in cal.subcomponents: for event in cal.subcomponents:
if event.name == "VEVENT": if event.name == "VEVENT":
if "RRULE" in event.keys(): if "RRULE" in event.keys():
events.append(parse_recurring_event(event, start, end)) events.extend(parse_recurring_event(event, start, end))
elif ev := parse_single_event(event, start, end) != None: elif ev := parse_single_event(event, start, end) != None:
events.append(ev) events.append(ev)