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 UID control #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zachbornheimer
Copy link

Apple Calendar and Google Calendar both have an issue if you download and add multiple calendars with the same UID and it will, randomly, overwrite data with each. This patch adds 3 new functions:
.setUID(str)
.autoUID(bool)
.getUID(event_title, default)

This allows for each event to have a unique ID. setUID has the highest precedence so you can use a custom hashing function, if desired, or any other manual modification to the UID. This should be run before addEvent. The autoUID may be set as well to allow for multiple events to have automatic UIDs based on their title and dates.

Apple Calendar and Google Calendar both have an issue if you download and add multiple calendars with the same UID and it will, randomly, overwrite data with each.  This patch adds 3 new functions:
.setUID(str)
.autoUID(bool)
.getUID(event_title, default)

This allows for each event to have a unique ID.  setUID has the highest precedence so you can use a custom hashing function, if desired, or any other manual modification to the UID.  This should be run before addEvent.  The autoUID may be set as well to allow for multiple events to have automatic UIDs based on their title and dates.
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