From 67a56626a4ecf6d412883c93460da895b5682c7e Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Mon, 30 Dec 2024 20:18:56 -0800 Subject: [PATCH] update pending count --- 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 042927c3f..12814b970 100644 --- a/app/service/statistics.py +++ b/app/service/statistics.py @@ -96,7 +96,7 @@ def _update_statuses_from_row(update_dict, row): NotificationStatus.VIRUS_SCAN_FAILED, ): update_dict[StatisticsType.FAILURE] += row.count - elif row.status == NotificationStatus.PENDING: + elif row.status in (NotificationStatus.PENDING, NotificationStatus.CREATED, NotificationStatus.SENDING): update_dict[StatisticsType.PENDING] += row.count