mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
add pending stats
This commit is contained in:
@@ -211,3 +211,4 @@ class StatisticsType(StrEnum):
|
||||
REQUESTED = "requested"
|
||||
DELIVERED = "delivered"
|
||||
FAILURE = "failure"
|
||||
PENDING = "pending"
|
||||
|
||||
@@ -96,6 +96,8 @@ def _update_statuses_from_row(update_dict, row):
|
||||
NotificationStatus.VIRUS_SCAN_FAILED,
|
||||
):
|
||||
update_dict[StatisticsType.FAILURE] += row.count
|
||||
elif row.status == NotificationStatus.PENDING:
|
||||
update_dict[StatisticsType.PENDING] += row.count
|
||||
|
||||
|
||||
def create_empty_monthly_notification_status_stats_dict(year):
|
||||
|
||||
Reference in New Issue
Block a user