mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-08 21:13:13 -04:00
Removed prints
This commit is contained in:
@@ -23,7 +23,6 @@ from app.celery.statistics_tasks import record_initial_job_statistics, create_in
|
|||||||
|
|
||||||
def send_sms_to_provider(notification):
|
def send_sms_to_provider(notification):
|
||||||
service = notification.service
|
service = notification.service
|
||||||
print('send')
|
|
||||||
if not service.active:
|
if not service.active:
|
||||||
technical_failure(notification=notification)
|
technical_failure(notification=notification)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -122,7 +122,6 @@ def send_notification(notification_type):
|
|||||||
_service_has_permission(authenticated_service, SMS_TYPE)
|
_service_has_permission(authenticated_service, SMS_TYPE)
|
||||||
_service_can_send_internationally(authenticated_service, notification_form['to'])
|
_service_can_send_internationally(authenticated_service, notification_form['to'])
|
||||||
elif notification_type == EMAIL_TYPE:
|
elif notification_type == EMAIL_TYPE:
|
||||||
print('email')
|
|
||||||
_service_has_permission(authenticated_service, EMAIL_TYPE)
|
_service_has_permission(authenticated_service, EMAIL_TYPE)
|
||||||
|
|
||||||
# Do not persist or send notification to the queue if it is a simulated recipient
|
# Do not persist or send notification to the queue if it is a simulated recipient
|
||||||
@@ -167,7 +166,6 @@ def get_notification_return_data(notification_id, notification, template):
|
|||||||
|
|
||||||
|
|
||||||
def _service_has_permission(service, notify_type):
|
def _service_has_permission(service, notify_type):
|
||||||
print(service.permissions)
|
|
||||||
if notify_type not in [p.permission for p in service.permissions]:
|
if notify_type not in [p.permission for p in service.permissions]:
|
||||||
notify_type_text = notify_type + 's'
|
notify_type_text = notify_type + 's'
|
||||||
action = 'send'
|
action = 'send'
|
||||||
|
|||||||
Reference in New Issue
Block a user