mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-03 07:58:59 -04:00
Merge pull request #1198 from alphagov/fix-view-letter-job
Fix format_notification_status to handle the letter status.
This commit is contained in:
@@ -318,6 +318,15 @@ def format_notification_status(status, template_type):
|
||||
'delivered': 'Delivered',
|
||||
'sending': 'Sending',
|
||||
'created': 'Sending'
|
||||
},
|
||||
'letter': {
|
||||
'failed': 'Failed',
|
||||
'technical-failure': 'Technical failure',
|
||||
'temporary-failure': 'Temporary failure',
|
||||
'permanent-failure': 'Permanent failure',
|
||||
'delivered': 'Delivered',
|
||||
'sending': 'Sending',
|
||||
'created': 'Sending'
|
||||
}
|
||||
}[template_type].get(status, status)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user