mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 07:21:13 -05:00
Return cancelled letters for dashboard
Added cancelled letters to the number of failed letters in the statistics that get used for the dashboard. At some point, we want to stop including cancelled letters in the stats, but for now this keeps things consistent with our current letter failure state, permanent-failure.
This commit is contained in:
@@ -86,7 +86,7 @@ def _update_statuses_from_row(update_dict, row):
|
||||
update_dict['delivered'] += row.count
|
||||
elif row.status in (
|
||||
'failed', 'technical-failure', 'temporary-failure',
|
||||
'permanent-failure', 'validation-failed', 'virus-scan-failed'):
|
||||
'permanent-failure', 'validation-failed', 'virus-scan-failed', 'cancelled'):
|
||||
update_dict['failed'] += row.count
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user