Skip to content
Snippets Groups Projects
Commit 1ff5c263 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

"BUR_USR / BUR_PWD" --> "CAL_USR / CAL_PWD"

parent 6dd055c3
Branches
Tags 0.39.7
No related merge requests found
......@@ -9,9 +9,9 @@ class DB():
with open('./config.json') as json_config_file:
config = json.load(json_config_file)
usr = os.environ.get('BUR_USR')
pwd = os.environ.get('BUR_PWD')
# TODO: url-encode the ontent of 'CAL_USR' / 'CAL_PWD'
usr = os.environ.get('CAL_USR')
pwd = os.environ.get('CAL_PWD')
if usr and pwd:
url = 'http://{usr}:{pwd}@{host}:{port}/'.format(usr=usr, pwd=pwd, host=config['host'], port=config['port'])
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment