mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-03 21:20:47 -04:00
Send count of sent letters to performance platform
Now we’ve been sending real letters for quite a while it would be nice to show how many.
This commit is contained in:
@@ -27,6 +27,7 @@ def get_total_sent_notifications_yesterday():
|
||||
|
||||
email_count = get_total_sent_notifications_in_date_range(start_date, end_date, 'email')
|
||||
sms_count = get_total_sent_notifications_in_date_range(start_date, end_date, 'sms')
|
||||
letter_count = get_total_sent_notifications_in_date_range(start_date, end_date, 'letter')
|
||||
|
||||
return {
|
||||
"start_date": start_date,
|
||||
@@ -35,5 +36,8 @@ def get_total_sent_notifications_yesterday():
|
||||
},
|
||||
"sms": {
|
||||
"count": sms_count
|
||||
}
|
||||
},
|
||||
"letter": {
|
||||
"count": letter_count
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user