Remove reference to template.template_type for the stats update query.

Removes a query during the stats update.
This commit is contained in:
Rebecca Law
2016-06-29 12:12:35 +01:00
parent 25db1bce74
commit 1ce3495fc7

View File

@@ -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)
)