mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-06 06:30:51 -04:00
@@ -1581,7 +1581,7 @@ class Notification(db.Model):
|
||||
self._personalisation = encryption.encrypt(personalisation or {})
|
||||
|
||||
def completed_at(self):
|
||||
if self.status in NotificationStatus.completed:
|
||||
if self.status in NotificationStatus.completed_types:
|
||||
return self.updated_at.strftime(DATETIME_FORMAT)
|
||||
|
||||
return None
|
||||
@@ -1621,7 +1621,7 @@ class Notification(db.Model):
|
||||
|
||||
def _substitute_status_str(_status):
|
||||
return (
|
||||
NotificationStatus.failed
|
||||
NotificationStatus.failed_types
|
||||
if _status == NotificationStatus.FAILED
|
||||
else [_status]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user