try to fix tests

This commit is contained in:
Kenneth Kehl
2024-12-03 13:50:42 -08:00
parent b4093e8152
commit 14e4d761fc
3 changed files with 17 additions and 6 deletions

View File

@@ -72,7 +72,7 @@ def dao_create_notification(notification):
notification.to = "1"
notification.normalised_to = "1"
# notify-api-1454 change to an upsert
# notify-api-1454 insert only if it doesn't exist
stmt = select(Notification).where(Notification.id == notification.id)
result = db.session.execute(stmt).scalar()
if result is None: