Update the query

This commit is contained in:
Rebecca Law
2017-12-19 13:47:24 +00:00
parent c5c40a0866
commit e599db2684

View File

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