-
Notifications
You must be signed in to change notification settings - Fork 102
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
Detecting Overlapping Events #5
Comments
Is there a way to handle this with current code? I am having the same situation. |
Here's what I am doing... I cloned the repo and modified the source directly to add a method to the OccurrenceManager class, but you could just write a function that takes two occurrences, or subclass occurrence.
Note that this implementation returns False if one occurrence begins at the same time that the other ends. For example, if I have an occurrence from 9:00-10:00 and another from 10:00-11:00 this would not interpret them as overlapping. |
Thanks. I am working more modifications on swingtime code, this really helps. Thanks again!!! |
Curious if you ever thought of adding a check in the form clean method to check for overlapping occurrences with the rrules being used in the submitted form?
Thanks for the great code!
The text was updated successfully, but these errors were encountered: