mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 02:11:11 -05:00
Don't do anything if the query doesn't yield results.
This commit is contained in:
@@ -395,6 +395,7 @@ def insert_update_notification_history(notification_type, date_to_delete_from, s
|
|||||||
Notification.key_type != KEY_TYPE_TEST
|
Notification.key_type != KEY_TYPE_TEST
|
||||||
).all()
|
).all()
|
||||||
|
|
||||||
|
if notifications:
|
||||||
stmt = insert(NotificationHistory).values(
|
stmt = insert(NotificationHistory).values(
|
||||||
notifications
|
notifications
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user