diff --git a/Schedulebot.py b/Schedulebot.py index 382abf7..9b19964 100644 --- a/Schedulebot.py +++ b/Schedulebot.py @@ -118,8 +118,8 @@ def createEvent(summary, location, description, startTime, endTime, timezone, gi print(startDate) print(endDate) eventsCreated.append(summary) + foundCalendarID = 'primary' if separateEventsByCalendar: - foundCalendarID = 'primary' for calendarListEntry in calendarList: if calendarListEntry['summary'] == summary: foundCalendarID = calendarListEntry['id']