From f26c8e3ce1f6a4323124e67b44ea47269702e138 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Mon, 20 Mar 2017 16:25:07 +0000 Subject: [PATCH] Fix format_notification_status to handle the letter status. Not sure what temp and perm failure should look like so I left them for now. --- app/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/__init__.py b/app/__init__.py index 89eb1f55c..05e825a6b 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -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)