Cleans up module.
This commit is contained in:
parent
1242a747da
commit
85c419e2db
@ -63,7 +63,6 @@ elif ssl == 0:
|
|||||||
else:
|
else:
|
||||||
ssl = True
|
ssl = True
|
||||||
|
|
||||||
valid_service_codes = config.get('USSD_SERVICE_CODE').split(",")
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
# TODO: improve url building
|
# TODO: improve url building
|
||||||
@ -79,7 +78,7 @@ def main():
|
|||||||
session = uuid.uuid4().hex
|
session = uuid.uuid4().hex
|
||||||
data = {
|
data = {
|
||||||
'sessionId': session,
|
'sessionId': session,
|
||||||
'serviceCode': valid_service_codes[0],
|
'serviceCode': config.get('USSD_SERVICE_CODE'),
|
||||||
'phoneNumber': args.phone,
|
'phoneNumber': args.phone,
|
||||||
'text': "",
|
'text': "",
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user