Compare commits
3 Commits
b99c43f63d
...
a094edf6cd
Author | SHA1 | Date |
---|---|---|
Ferdinand Thiessen | a094edf6cd | |
Ferdinand Thiessen | 2dc511db11 | |
Ferdinand Thiessen | 459b61aa70 |
|
@ -116,7 +116,7 @@ def get_event(event_id, with_backup=False) -> Event:
|
|||
if event is None:
|
||||
raise NotFound
|
||||
if not with_backup:
|
||||
clear_backup(event)
|
||||
return clear_backup(event)
|
||||
return event
|
||||
|
||||
|
||||
|
@ -154,7 +154,6 @@ 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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue