From 1ce3495fc7c8568594fbb93c12340c3b555f058a Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Wed, 29 Jun 2016 12:12:35 +0100 Subject: [PATCH] Remove reference to template.template_type for the stats update query. Removes a query during the stats update. --- app/dao/notifications_dao.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dao/notifications_dao.py b/app/dao/notifications_dao.py index 14ee87b4d..013da7d23 100644 --- a/app/dao/notifications_dao.py +++ b/app/dao/notifications_dao.py @@ -213,7 +213,7 @@ def _update_statistics(notification, notification_statistics_status): day=notification.created_at.date(), service_id=notification.service_id ).update( - _update_notification_stats_query(notification.template.template_type, notification_statistics_status) + _update_notification_stats_query(notification.notification_type, notification_statistics_status) )