From ef82852b82cf09e113e20f30a8859bbace1686b0 Mon Sep 17 00:00:00 2001 From: Sayyid Hamid Mahdavi Date: Tue, 15 Sep 2020 16:44:07 +0430 Subject: [PATCH] temporary changes --- apps/users/tasks.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/apps/users/tasks.py b/apps/users/tasks.py index fcca359..8a25d1a 100644 --- a/apps/users/tasks.py +++ b/apps/users/tasks.py @@ -10,17 +10,17 @@ def send_notification(phone_number=None, user_uuid=None, email=None, notification_type=1): - - service_client = Client( - client_id=settings.CLIENT_ID, - client_secret=settings.CLIENT_SECRET, - grant_type=AccountsClient.GRANT_CLIENT_CREDENTIALS - ) - service_client.login(scopes=['notification.notification:submit']) - service_client.notification.submit_notification(phone_number=phone_number, - title=title, - body=body, - user_uuid=user_uuid, - notification_type=notification_type, - email=email - ) + print('sms sent') + # service_client = Client( + # client_id=settings.CLIENT_ID, + # client_secret=settings.CLIENT_SECRET, + # grant_type=AccountsClient.GRANT_CLIENT_CREDENTIALS + # ) + # service_client.login(scopes=['notification.notification:submit']) + # service_client.notification.submit_notification(phone_number=phone_number, + # title=title, + # body=body, + # user_uuid=user_uuid, + # notification_type=notification_type, + # email=email + # )