mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-09 01:53:12 -04:00
remove letters from performance_platform
This commit is contained in:
@@ -4,6 +4,7 @@ from app.dao.fact_notification_status_dao import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# TODO: is this obsolete? it doesn't seem to be used anywhere
|
||||||
def send_total_notifications_sent_for_day_stats(start_time, notification_type, count):
|
def send_total_notifications_sent_for_day_stats(start_time, notification_type, count):
|
||||||
payload = performance_platform_client.format_payload(
|
payload = performance_platform_client.format_payload(
|
||||||
dataset='notifications',
|
dataset='notifications',
|
||||||
@@ -16,13 +17,12 @@ def send_total_notifications_sent_for_day_stats(start_time, notification_type, c
|
|||||||
performance_platform_client.send_stats_to_performance_platform(payload)
|
performance_platform_client.send_stats_to_performance_platform(payload)
|
||||||
|
|
||||||
|
|
||||||
|
# TODO: is this obsolete? it doesn't seem to be used anywhere
|
||||||
def get_total_sent_notifications_for_day(day):
|
def get_total_sent_notifications_for_day(day):
|
||||||
email_count = get_total_sent_notifications_for_day_and_type(day, 'email')
|
email_count = get_total_sent_notifications_for_day_and_type(day, 'email')
|
||||||
sms_count = get_total_sent_notifications_for_day_and_type(day, 'sms')
|
sms_count = get_total_sent_notifications_for_day_and_type(day, 'sms')
|
||||||
letter_count = get_total_sent_notifications_for_day_and_type(day, 'letter')
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"email": email_count,
|
"email": email_count,
|
||||||
"sms": sms_count,
|
"sms": sms_count,
|
||||||
"letter": letter_count,
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user