Merge pull request #3089 from alphagov/everyday-2nd-class-alert

Alert on 2nd class letters still in sending everyday
This commit is contained in:
David McDonald
2021-01-13 12:16:55 +00:00
committed by GitHub
2 changed files with 4 additions and 9 deletions

View File

@@ -266,11 +266,6 @@ def get_letter_notifications_still_sending_when_they_shouldnt_be():
func.date(Notification.sent_at) <= expected_sent_date
)
if today.isoweekday() in {2, 4}: # on tue, thu, we only care about first class letters
q = q.filter(
Notification.postage == 'first'
)
return q.count(), expected_sent_date