From 85c419e2db059798bb641dcf509b03e48a4d3810 Mon Sep 17 00:00:00 2001 From: PhilipWafula Date: Tue, 2 Nov 2021 17:00:36 +0300 Subject: [PATCH] Cleans up module. --- apps/cic-ussd/cic_ussd/runnable/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/cic-ussd/cic_ussd/runnable/client.py b/apps/cic-ussd/cic_ussd/runnable/client.py index 37a62898..17beae7b 100644 --- a/apps/cic-ussd/cic_ussd/runnable/client.py +++ b/apps/cic-ussd/cic_ussd/runnable/client.py @@ -63,7 +63,6 @@ elif ssl == 0: else: ssl = True -valid_service_codes = config.get('USSD_SERVICE_CODE').split(",") def main(): # TODO: improve url building @@ -79,7 +78,7 @@ def main(): session = uuid.uuid4().hex data = { 'sessionId': session, - 'serviceCode': valid_service_codes[0], + 'serviceCode': config.get('USSD_SERVICE_CODE'), 'phoneNumber': args.phone, 'text': "", }