Don't send test letters to dvla to print

This commit is contained in:
David McDonald
2020-02-19 13:36:05 +00:00
parent 7578e01b3b
commit 6226d9e122
2 changed files with 11 additions and 1 deletions

View File

@@ -742,7 +742,8 @@ def dao_get_letters_to_be_printed(print_run_date):
notifications = Notification.query.filter(
Notification.created_at < convert_bst_to_utc(last_processing_deadline),
Notification.notification_type == LETTER_TYPE,
Notification.status == NOTIFICATION_CREATED
Notification.status == NOTIFICATION_CREATED,
Notification.key_type == KEY_TYPE_NORMAL
).order_by(
Notification.created_at
).all()