comments
This commit is contained in:
parent
e7fab04125
commit
900eb2f259
|
@ -35,6 +35,7 @@ for c in listdir(calendar_folder):
|
|||
with open(calendar_folder + c + "/" + file, 'r') as in_file:
|
||||
cal = IcsCalendarStream.calendar_from_ics(in_file.read())
|
||||
for e in cal.events:
|
||||
# Add all events to our calendar widget
|
||||
calendar.calevent_create(date=e.dtstart, text=e.summary)
|
||||
except ValidationError:
|
||||
print(f"Could not parse file: {calendar_folder}{c}")
|
||||
|
|
Loading…
Reference in a new issue