From e599db2684feb4184a394b8cefb77ecb255791a1 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Tue, 19 Dec 2017 13:47:24 +0000 Subject: [PATCH] Update the query --- app/dao/notification_usage_dao.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/dao/notification_usage_dao.py b/app/dao/notification_usage_dao.py index 5c8457837..387c5b2b0 100644 --- a/app/dao/notification_usage_dao.py +++ b/app/dao/notification_usage_dao.py @@ -166,8 +166,7 @@ def billing_letter_data_per_month_query(service_id, start_date, end_date): LetterRate.sheet_count == NotificationHistory.billable_units, LetterRate.crown == crown, LetterRate.post_class == 'second', - NotificationHistory.created_at < end_date, - + NotificationHistory.created_at < end_date ).group_by( NotificationHistory.notification_type, month,