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:
|
if event is None:
|
||||||
raise NotFound
|
raise NotFound
|
||||||
if not with_backup:
|
if not with_backup:
|
||||||
clear_backup(event)
|
return clear_backup(event)
|
||||||
return event
|
return event
|
||||||
|
|
||||||
|
|
||||||
|
@ -154,7 +154,6 @@ def delete_event(event_id):
|
||||||
NotFound if not found
|
NotFound if not found
|
||||||
"""
|
"""
|
||||||
event = get_event(event_id)
|
event = get_event(event_id)
|
||||||
logger.info(f"{type(event)} {event.__str__}")
|
|
||||||
db.session.delete(event)
|
db.session.delete(event)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue