mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -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',
|
'delivered': 'Delivered',
|
||||||
'sending': 'Sending',
|
'sending': 'Sending',
|
||||||
'created': '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)
|
}[template_type].get(status, status)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user