notify-api-433b remove research mode

This commit is contained in:
Kenneth Kehl
2023-08-25 12:09:00 -07:00
parent b679550d97
commit 5a350560d7
32 changed files with 88 additions and 305 deletions

View File

@@ -148,10 +148,10 @@ def persist_notification(
def send_notification_to_queue_detached(
key_type, notification_type, notification_id, research_mode, queue=None
key_type, notification_type, notification_id, queue=None
):
if research_mode or key_type == KEY_TYPE_TEST:
queue = QueueNames.RESEARCH_MODE
if key_type == KEY_TYPE_TEST:
print("send_notification_to_queue_detached key is test key")
if notification_type == SMS_TYPE:
if not queue:
@@ -174,9 +174,9 @@ def send_notification_to_queue_detached(
queue))
def send_notification_to_queue(notification, research_mode, queue=None):
def send_notification_to_queue(notification, queue=None):
send_notification_to_queue_detached(
notification.key_type, notification.notification_type, notification.id, research_mode, queue
notification.key_type, notification.notification_type, notification.id, queue
)

View File

@@ -116,7 +116,6 @@ def send_notification(notification_type):
if not simulated:
queue_name = QueueNames.PRIORITY if template.process_type == PRIORITY else None
send_notification_to_queue(notification=notification_model,
research_mode=authenticated_service.research_mode,
queue=queue_name)
else:
current_app.logger.debug("POST simulated notification for id: {}".format(notification_model.id))