mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-25 00:33:41 -04:00
Fixing things is fun.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
@@ -85,7 +85,13 @@ def transform_results_into_totals(total_notifications_results):
|
||||
def transform_into_notification_by_type_json(total_notifications):
|
||||
j = []
|
||||
for x in total_notifications:
|
||||
j.append({"date": x.local_date.strftime("%Y-%m-%d"), "emails": x.emails, "sms": x.sms})
|
||||
j.append(
|
||||
{
|
||||
"date": x.local_date.strftime("%Y-%m-%d"),
|
||||
"emails": x.emails,
|
||||
"sms": x.sms,
|
||||
}
|
||||
)
|
||||
|
||||
return j
|
||||
|
||||
|
||||
Reference in New Issue
Block a user