From e3a79e80c90657a882c142cfddd860771187a38b Mon Sep 17 00:00:00 2001 From: Pea Tyczynska Date: Tue, 8 Jan 2019 17:50:34 +0000 Subject: [PATCH] Cancelled notifications don't show as failures in statistics --- app/service/statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/service/statistics.py b/app/service/statistics.py index e1ed57aeb..3d22b20d6 100644 --- a/app/service/statistics.py +++ b/app/service/statistics.py @@ -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', 'cancelled'): + 'permanent-failure', 'validation-failed', 'virus-scan-failed'): update_dict['failed'] += row.count