mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 17:01:35 -05:00
add type conversion to report downloads
"sent" is fine as an internal marker but not very obvious to the end user that it specifically refers to international messages. We now say "Sent internationally" in the CSV
This commit is contained in:
@@ -752,7 +752,8 @@ class Notification(db.Model):
|
||||
'permanent-failure': 'Email address doesn’t exist',
|
||||
'delivered': 'Delivered',
|
||||
'sending': 'Sending',
|
||||
'created': 'Sending'
|
||||
'created': 'Sending',
|
||||
'sent': 'Delivered'
|
||||
},
|
||||
'sms': {
|
||||
'failed': 'Failed',
|
||||
@@ -761,7 +762,8 @@ class Notification(db.Model):
|
||||
'permanent-failure': 'Phone number doesn’t exist',
|
||||
'delivered': 'Delivered',
|
||||
'sending': 'Sending',
|
||||
'created': 'Sending'
|
||||
'created': 'Sending',
|
||||
'sent': 'Sent internationally'
|
||||
},
|
||||
'letter': {
|
||||
'failed': 'Failed',
|
||||
@@ -770,7 +772,8 @@ class Notification(db.Model):
|
||||
'permanent-failure': 'Permanent failure',
|
||||
'delivered': 'Delivered',
|
||||
'sending': 'Sending',
|
||||
'created': 'Sending'
|
||||
'created': 'Sending',
|
||||
'sent': 'Delivered'
|
||||
}
|
||||
}[self.template.template_type].get(self.status, self.status)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user