Added basic external organizer functionality. Previously, if one of t… #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello!
I was setting up your wonderful syncing tool and I noticed I kept getting errors. After investigating, I realized what was happening: The code was failing on Step 4 "Bring Events not in notion from GCAL to Notion".
It turns out that the issue was that I was trying to import events (in my gcal) that were made by other people , external organizers)as I call them.
These are added to the gCal_calendarID list but are not apart of the calendar dictionary (as I do not have permission to write to these calendars). Therefore, when trying to access calIds.index(external organizer) the code threw a Value Error. The solution I came up with is simply to add these events to the default calendar. This is a pretty naïve solution, but it makes the code operational. To do this I made an organizer_map() function, which you can find where gCal_calendarName is set.
Thank you for your time