main
Anish Lakhwara 2022-12-17 01:21:18 +10:00
parent e7fab04125
commit 900eb2f259
1 changed files with 1 additions and 0 deletions

View File

@ -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}")