From 5b89c151f924aefab665737e0d4a2225883779e7 Mon Sep 17 00:00:00 2001 From: PhilipWafula Date: Thu, 27 May 2021 19:00:41 +0300 Subject: [PATCH] Updates cic-notify to fix minor bugs. --- apps/cic-notify/cic_notify/tasks/sms/africastalking.py | 2 +- apps/cic-notify/setup.cfg | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/cic-notify/cic_notify/tasks/sms/africastalking.py b/apps/cic-notify/cic_notify/tasks/sms/africastalking.py index af48ac58..e52b030f 100644 --- a/apps/cic-notify/cic_notify/tasks/sms/africastalking.py +++ b/apps/cic-notify/cic_notify/tasks/sms/africastalking.py @@ -56,7 +56,7 @@ class AfricasTalkingNotifier: response = self.api_client.send(message=message, recipients=[recipient]) logg.debug(f'africastalking response no-sender-id {response}') - recipients = response.get('Recipients') + recipients = response.get('SMSMessageData').get('Recipients') if len(recipients) != 1: status = response.get('SMSMessageData').get('Message') diff --git a/apps/cic-notify/setup.cfg b/apps/cic-notify/setup.cfg index d4606598..ea3a2f05 100644 --- a/apps/cic-notify/setup.cfg +++ b/apps/cic-notify/setup.cfg @@ -28,6 +28,7 @@ packages = cic_notify cic_notify.db cic_notify.db.models + cic_notify.ext cic_notify.tasks.sms cic_notify.runnable scripts =