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

Spond.get_event() doesn't return 'scheduled' events, i.e. where invites are set to send in the future. #138

Open
elliot-100 opened this issue Jun 25, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@elliot-100
Copy link
Collaborator

This is because get_event() calls get_events() with no parameters, which means include_scheduled defaults to False.

This filters out any events for which invites are set to send in the future (not 100% sure of behaviour with recurring events).

This is unexpected, but not sure if it can be considered a bug - maybe a documentation gap.

@elliot-100 elliot-100 added the documentation Improvements or additions to documentation label Jun 25, 2024
@elliot-100 elliot-100 changed the title get_event() doesn't return 'scheduled' events, i.e. where invites are set to send in the future. Spond.get_event() doesn't return 'scheduled' events, i.e. where invites are set to send in the future. Jul 19, 2024
@Bart274
Copy link

Bart274 commented Dec 19, 2024

For me it would make sense if we could fetch a scheduled event from the ID.

@elliot-100
Copy link
Collaborator Author

elliot-100 commented Dec 19, 2024

There is a simple workaround - call get_events() with include_scheduled=True.

Then iterate through the list returned, for a match on uid.

I think the long-term answer is that get_event() should be changed to always take a sequence of events in which to look for the uid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants