mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-14 09:12:06 -05:00
@@ -85,7 +85,8 @@ def transform_results_into_totals(total_notifications_results):
|
|||||||
def transform_into_notification_by_type_json(total_notifications):
|
def transform_into_notification_by_type_json(total_notifications):
|
||||||
j = []
|
j = []
|
||||||
for x in total_notifications:
|
for x in total_notifications:
|
||||||
j.append({"date": x.local_date, "emails": x.emails, "sms": x.sms})
|
j.append({"date": x.local_date.strftime("%Y-%m-%d"), "emails": x.emails, "sms": x.sms})
|
||||||
|
|
||||||
return j
|
return j
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user