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:
Chris Hill-Scott
2018-03-02 16:05:26 +00:00
parent d4db959a55
commit 7e1aa03371
3 changed files with 16 additions and 1 deletions

View File

@@ -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
},
}