Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added basic external organizer functionality. Previously, if one of t… #22

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Mishark-dev
Copy link

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

Misha and others added 2 commits August 30, 2022 20:02
…he google calendars contained events that were organized by a third party (where events[item][organizer] did not have

a "self" : true pair) and error would occur. Now, these events are added to the default calendar through the use of a simple funciton called organizer_map.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant