mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 08:44:23 -04:00
@@ -1,3 +1,5 @@
|
|||||||
|

|
||||||
|
|
||||||
# Notify.gov Admin UI
|
# Notify.gov Admin UI
|
||||||
|
|
||||||
This is the Notify front-end for government users and admins. To see it in
|
This is the Notify front-end for government users and admins. To see it in
|
||||||
|
|||||||
@@ -276,12 +276,16 @@ def get_status_filters(service, message_type, statistics):
|
|||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
stats = statistics[message_type]
|
stats = statistics[message_type]
|
||||||
stats["sending"] = stats["requested"] - stats["delivered"] - stats["failed"]
|
|
||||||
|
if stats.get("failure") is not None:
|
||||||
|
stats["failed"] = stats["failure"]
|
||||||
|
|
||||||
|
stats["pending"] = stats["requested"] - stats["delivered"] - stats["failed"]
|
||||||
|
|
||||||
filters = [
|
filters = [
|
||||||
# key, label, option
|
# key, label, option
|
||||||
("requested", "total", "sending,delivered,failed"),
|
("requested", "total", "sending,delivered,failed"),
|
||||||
("sending", "pending", "pending"),
|
("pending", "pending", "pending"),
|
||||||
("delivered", "delivered", "delivered"),
|
("delivered", "delivered", "delivered"),
|
||||||
("failed", "failed", "failed"),
|
("failed", "failed", "failed"),
|
||||||
]
|
]
|
||||||
@@ -296,7 +300,7 @@ def get_status_filters(service, message_type, statistics):
|
|||||||
message_type=message_type,
|
message_type=message_type,
|
||||||
status=option,
|
status=option,
|
||||||
),
|
),
|
||||||
stats[key],
|
stats.get(key),
|
||||||
)
|
)
|
||||||
for key, label, option in filters
|
for key, label, option in filters
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user