Added created as a status type that can be updated.

This commit is contained in:
Rebecca Law
2016-06-22 14:42:55 +01:00
parent 1659b64f9e
commit 23dfa2d535
2 changed files with 8 additions and 1 deletions

View File

@@ -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: