mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Added created as a status type that can be updated.
This commit is contained in:
@@ -248,7 +248,8 @@ def _update_notification_status(notification, status, notification_statistics_st
|
||||
def update_notification_status_by_id(notification_id, status, notification_statistics_status=None):
|
||||
notification = Notification.query.filter(
|
||||
Notification.id == notification_id,
|
||||
or_(Notification.status == 'sending',
|
||||
or_(Notification.status == 'created',
|
||||
Notification.status == 'sending',
|
||||
Notification.status == 'pending')).first()
|
||||
|
||||
if not notification:
|
||||
|
||||
Reference in New Issue
Block a user