Spond icon indicating copy to clipboard operation
Spond copied to clipboard

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

Open elliot-100 opened this issue 1 year ago • 2 comments

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 avatar Jun 25 '24 14:06 elliot-100

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

Bart274 avatar Dec 19 '24 14:12 Bart274

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.

elliot-100 avatar Dec 19 '24 17:12 elliot-100