Merge pull request #2238 from alphagov/letter-500

look in correct bucket for letters sent after 5:30pm
This commit is contained in:
Leo Hemsted
2018-11-27 13:42:43 +00:00
committed by GitHub
2 changed files with 8 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ def get_bucket_name_and_prefix_for_notification(notification):
bucket_name = current_app.config['TEST_LETTERS_BUCKET_NAME']
else:
bucket_name = current_app.config['LETTERS_PDF_BUCKET_NAME']
folder = '{}/'.format(notification.created_at.date())
folder = get_folder_name(notification.created_at, False)
upload_file_name = PRECOMPILED_BUCKET_PREFIX.format(
folder=folder,