mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
Test aggregate_notifications_stats
This commit is contained in:
@@ -293,7 +293,7 @@ def aggregate_notifications_stats(template_statistics):
|
||||
notifications = {
|
||||
template_type: {
|
||||
status: 0 for status in ('requested', 'delivered', 'failed')
|
||||
} for template_type in current_service.TEMPLATE_TYPES
|
||||
} for template_type in ["sms", "email", "letter"]
|
||||
}
|
||||
for stat in template_statistics:
|
||||
notifications[stat["template_type"]]["requested"] += stat["count"]
|
||||
|
||||
Reference in New Issue
Block a user