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:
Katie Smith
2018-11-22 15:17:17 +00:00
parent 1d67b55b16
commit 90d9135fcf
3 changed files with 4 additions and 2 deletions

View File

@@ -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