Fix for performance platform updates.

Changed the query to get the performance platform stats from ft_notification_status. But the date used for the query needed to be a date, not datetime so the equality worked.
This commit is contained in:
Rebecca Law
2019-04-01 12:03:57 +01:00
parent 0561fe5e11
commit 1456aa7789
3 changed files with 7 additions and 4 deletions

View File

@@ -157,7 +157,7 @@ def send_daily_performance_platform_stats():
def send_total_sent_notifications_to_performance_platform(day):
count_dict = total_sent_notifications.get_total_sent_notifications_for_day(day)
count_dict = total_sent_notifications.get_total_sent_notifications_for_day(day.date())
email_sent_count = count_dict.get('email').get('count')
sms_sent_count = count_dict.get('sms').get('count')
letter_sent_count = count_dict.get('letter').get('count')