make sure test notifications don't get date subfolders

they just go in the test bucket's root
This commit is contained in:
Leo Hemsted
2019-09-17 17:34:47 +01:00
parent 99eb17fc29
commit d080106cbe
2 changed files with 19 additions and 8 deletions

View File

@@ -88,7 +88,7 @@ def upload_letter_pdf(notification, pdf_data, precompiled=False):
upload_file_name = get_letter_pdf_filename(
notification.reference,
notification.service.crown,
is_scan_letter=precompiled,
is_scan_letter=precompiled or notification.key_type == KEY_TYPE_TEST,
postage=notification.postage
)