mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
Move DATETIME_FORMAT from app to app.utils
To avoid cyclical import issues
This commit is contained in:
@@ -4,6 +4,7 @@ import boto3
|
||||
from flask import current_app
|
||||
|
||||
from app.config import BroadcastProvider
|
||||
from app.utils import DATETIME_FORMAT, format_sequential_number
|
||||
|
||||
# The variable names in this file have specific meaning in a CAP message
|
||||
#
|
||||
@@ -165,7 +166,6 @@ class CBCProxyEE(CBCProxyClientBase):
|
||||
identifier, previous_provider_messages,
|
||||
sent, message_number=None
|
||||
):
|
||||
from app import DATETIME_FORMAT
|
||||
payload = {
|
||||
'message_type': 'cancel',
|
||||
'identifier': identifier,
|
||||
@@ -221,9 +221,6 @@ class CBCProxyVodafone(CBCProxyClientBase):
|
||||
def cancel_broadcast(
|
||||
self, identifier, previous_provider_messages, sent, message_number
|
||||
):
|
||||
# avoid cyclical import
|
||||
from app.utils import format_sequential_number
|
||||
from app import DATETIME_FORMAT
|
||||
|
||||
payload = {
|
||||
'message_type': 'cancel',
|
||||
|
||||
Reference in New Issue
Block a user