mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Remove support for old template statistics api response
This commit is contained in:
@@ -268,7 +268,7 @@ def get_inbox_partials(service_id):
|
||||
|
||||
def aggregate_template_usage(template_statistics, sort_key='count'):
|
||||
templates = []
|
||||
template_statistics = [s for s in template_statistics if s.get("status") != "cancelled"]
|
||||
template_statistics = [s for s in template_statistics if s["status"] != "cancelled"]
|
||||
for k, v in groupby(sorted(template_statistics, key=lambda x: x['template_id']), key=lambda x: x['template_id']):
|
||||
template_stats = list(v)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user