Merge branch 'philip/remove-hardcoded-import-script-configs' into 'master'
Refactors hardcoded config vars. See merge request grassrootseconomics/cic-internal-integration!196
This commit is contained in:
commit
d046595764
@ -117,7 +117,13 @@ def register_ussd(i, u):
|
|||||||
phone_object = phonenumbers.parse(u.tel)
|
phone_object = phonenumbers.parse(u.tel)
|
||||||
phone = phonenumbers.format_number(phone_object, phonenumbers.PhoneNumberFormat.E164)
|
phone = phonenumbers.format_number(phone_object, phonenumbers.PhoneNumberFormat.E164)
|
||||||
logg.debug('tel {} {}'.format(u.tel, phone))
|
logg.debug('tel {} {}'.format(u.tel, phone))
|
||||||
req = build_ussd_request(phone, 'localhost', 63315, '*483*46#', '', '')
|
req = build_ussd_request(
|
||||||
|
phone,
|
||||||
|
'localhost',
|
||||||
|
config.get('CIC_USER_USSD_SVC_SERVICE_PORT'),
|
||||||
|
config.get('APP_SERVICE_CODE'),
|
||||||
|
'',
|
||||||
|
'')
|
||||||
response = urllib.request.urlopen(req)
|
response = urllib.request.urlopen(req)
|
||||||
response_data = response.read().decode('utf-8')
|
response_data = response.read().decode('utf-8')
|
||||||
state = response_data[:3]
|
state = response_data[:3]
|
||||||
|
@ -7,3 +7,4 @@ approval_escrow_address =
|
|||||||
chain_spec = evm:bloxberg:8996
|
chain_spec = evm:bloxberg:8996
|
||||||
tx_retry_delay =
|
tx_retry_delay =
|
||||||
trust_address = 0xEb3907eCad74a0013c259D5874AE7f22DcBcC95C
|
trust_address = 0xEb3907eCad74a0013c259D5874AE7f22DcBcC95C
|
||||||
|
user_ussd_svc_service_port=
|
@ -1,5 +1,10 @@
|
|||||||
[database]
|
[database]
|
||||||
name = sempo
|
NAME=sempo
|
||||||
host = localhost
|
USER=postgres
|
||||||
port = 5432
|
PASSWORD=
|
||||||
user = postgres
|
HOST=localhost
|
||||||
|
PORT=5432
|
||||||
|
ENGINE=postgresql
|
||||||
|
DRIVER=psycopg2
|
||||||
|
DEBUG=0
|
||||||
|
POOL_SIZE=1
|
||||||
|
Loading…
Reference in New Issue
Block a user