mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 07:21:13 -05:00
notify-api-433b remove research mode
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user