From 8cdaf9f28a942d0e08a416b7d722caedaf14f50d Mon Sep 17 00:00:00 2001 From: nolash Date: Thu, 15 Jul 2021 00:54:48 +0200 Subject: [PATCH] Fix confini instantiation in ussd --- apps/cic-ussd/cic_ussd/runnable/daemons/cic_user_server.py | 2 +- apps/cic-ussd/cic_ussd/runnable/daemons/cic_user_ussd_server.py | 2 +- apps/cic-ussd/scripts/migrate.py | 2 +- apps/data-seeding/README.md | 2 +- apps/data-seeding/requirements.txt | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/cic-ussd/cic_ussd/runnable/daemons/cic_user_server.py b/apps/cic-ussd/cic_ussd/runnable/daemons/cic_user_server.py index c8df1ccd..a995b315 100644 --- a/apps/cic-ussd/cic_ussd/runnable/daemons/cic_user_server.py +++ b/apps/cic-ussd/cic_ussd/runnable/daemons/cic_user_server.py @@ -28,7 +28,7 @@ elif args.v: logging.getLogger().setLevel(logging.INFO) # parse config -config = Config(config_dir=args.c, env_prefix=args.env_prefix) +config = Config(args.c, env_prefix=args.env_prefix) config.process() config.censor('PASSWORD', 'DATABASE') logg.debug('config loaded from {}:\n{}'.format(args.c, config)) diff --git a/apps/cic-ussd/cic_ussd/runnable/daemons/cic_user_ussd_server.py b/apps/cic-ussd/cic_ussd/runnable/daemons/cic_user_ussd_server.py index 984fb680..4a138818 100644 --- a/apps/cic-ussd/cic_ussd/runnable/daemons/cic_user_ussd_server.py +++ b/apps/cic-ussd/cic_ussd/runnable/daemons/cic_user_ussd_server.py @@ -45,7 +45,7 @@ elif args.v: logging.getLogger().setLevel(logging.INFO) # parse config -config = Config(config_dir=args.c, env_prefix=args.env_prefix) +config = Config(args.c, env_prefix=args.env_prefix) config.process() config.censor('PASSWORD', 'DATABASE') logg.debug('config loaded from {}:\n{}'.format(args.c, config)) diff --git a/apps/cic-ussd/scripts/migrate.py b/apps/cic-ussd/scripts/migrate.py index 8f3fb2e1..0c4cb76a 100644 --- a/apps/cic-ussd/scripts/migrate.py +++ b/apps/cic-ussd/scripts/migrate.py @@ -30,7 +30,7 @@ arg_parser.add_argument('-vv', action='store_true', help='be more verbose') args = arg_parser.parse_args() -config = Config(config_dir=args.c, env_prefix=args.env_prefix) +config = Config(args.c, env_prefix=args.env_prefix) config.process() config.censor('PASSWORD', 'DATABASE') logg.debug(f'config:\n{config}') diff --git a/apps/data-seeding/README.md b/apps/data-seeding/README.md index 1b9e645b..02009a56 100644 --- a/apps/data-seeding/README.md +++ b/apps/data-seeding/README.md @@ -167,7 +167,7 @@ If you have previously run the `cic_ussd` import incompletely, it could be a goo Then, in sequence, run in first terminal: -`python cic_eth/import_balance.py -v -c config -p -r --token-symbol -y ../keystore/UTC--2021-01-08T17-18-44.521011372Z--eb3907ecad74a0013c259d5874ae7f22dcbcc95c out` +`python cic_ussd/import_balance.py -v -c config -p -r --token-symbol -y ../contract-migration/keystore/UTC--2021-01-08T17-18-44.521011372Z--eb3907ecad74a0013c259d5874ae7f22dcbcc95c out` In second terminal: diff --git a/apps/data-seeding/requirements.txt b/apps/data-seeding/requirements.txt index 0919fb95..10a752fd 100644 --- a/apps/data-seeding/requirements.txt +++ b/apps/data-seeding/requirements.txt @@ -10,3 +10,4 @@ eth-contract-registry~=0.5.6a1 eth-accounts-index~=0.0.12a1 eth-erc20~=0.0.10a3 erc20-faucet~=0.2.2a1 +psycopg2==2.8.6