mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Merge pull request #2238 from alphagov/letter-500
look in correct bucket for letters sent after 5:30pm
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user