From 2dabd1dd34de907c801809eedc1216817604249c Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 11 Nov 2021 12:23:45 +0100 Subject: [PATCH] [events] Fix deleteing an event --- flaschengeist/plugins/events/event_controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flaschengeist/plugins/events/event_controller.py b/flaschengeist/plugins/events/event_controller.py index 31a3b7b..3211363 100644 --- a/flaschengeist/plugins/events/event_controller.py +++ b/flaschengeist/plugins/events/event_controller.py @@ -116,7 +116,7 @@ def get_event(event_id, with_backup=False) -> Event: if event is None: raise NotFound if not with_backup: - return clear_backup(event) + clear_backup(event) return event @@ -154,6 +154,7 @@ def delete_event(event_id): NotFound if not found """ event = get_event(event_id) + logger.info(f"{type(event)} {event.__str__}") db.session.delete(event) db.session.commit()