mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 02:11:11 -05:00
update pending count
This commit is contained in:
@@ -96,7 +96,7 @@ def _update_statuses_from_row(update_dict, row):
|
|||||||
NotificationStatus.VIRUS_SCAN_FAILED,
|
NotificationStatus.VIRUS_SCAN_FAILED,
|
||||||
):
|
):
|
||||||
update_dict[StatisticsType.FAILURE] += row.count
|
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
|
update_dict[StatisticsType.PENDING] += row.count
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user