Getting an event by ID

Hey guys!

How does one get an event by its ID from inside an Indico plugin?


Event.get(id) or, if you want to exclude deleted events, Event.get(id, is_deleted=False)

You can also use get_one instead of get to fail if the event does not exist (instead of getting None).

Great! What import should I use to access these methods? Thanks

I think a search for import Event in the codebase answers that question :wink:

Silly me :slight_smile: Thanks, @ThiefMaster!