mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Bump notifications-utils to 3.7.0
Bumped notifications-utils to 3.7.0. Version 3.7.0 includes the `convert_utc_to_bst` and `convert_bst_to_utc` functions and the `LETTER_PROCESSING_DEADLINE` constant, so these have been removed from this repo and anywhere using these has now been updated to get these from `notifications-utils`. Also bumped pytest by a patch version to bring in a bug fix.
This commit is contained in:
@@ -4,10 +4,11 @@ from enum import Enum
|
||||
import boto3
|
||||
from flask import current_app
|
||||
|
||||
from notifications_utils.letter_timings import LETTER_PROCESSING_DEADLINE
|
||||
from notifications_utils.s3 import s3upload
|
||||
from notifications_utils.timezones import convert_utc_to_bst
|
||||
|
||||
from app.models import KEY_TYPE_TEST, SECOND_CLASS, RESOLVE_POSTAGE_FOR_FILE_NAME, NOTIFICATION_VALIDATION_FAILED
|
||||
from app.utils import convert_utc_to_bst
|
||||
|
||||
|
||||
class ScanErrorType(Enum):
|
||||
@@ -26,7 +27,7 @@ def get_folder_name(_now, is_test_or_scan_letter=False):
|
||||
folder_name = ''
|
||||
else:
|
||||
print_datetime = convert_utc_to_bst(_now)
|
||||
if print_datetime.time() > current_app.config.get('LETTER_PROCESSING_DEADLINE'):
|
||||
if print_datetime.time() > LETTER_PROCESSING_DEADLINE:
|
||||
print_datetime += timedelta(days=1)
|
||||
folder_name = '{}/'.format(print_datetime.date())
|
||||
return folder_name
|
||||
|
||||
Reference in New Issue
Block a user