Skip to content
Snippets Groups Projects
Commit 8020af4f authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Strip off /api to get CalCat base URL

parent 1ed0df1b
No related branches found
No related tags found
1 merge request!1068Public API to set caldb_root (option 2)
......@@ -54,8 +54,12 @@ def extra_calibration_client():
if calcat_config['use-oauth2']:
user_id, user_secret = calcat_config['user-id'], calcat_config['user-secret']
base_api_url = calcat_config['base-api-url'].rstrip('/')
assert base_api_url.endswith('/api')
base_url = base_api_url[:-4]
calcat_interface2.setup_client(
calcat_config['base-api-url'],
base_url,
client_id=user_id,
client_secret=user_secret,
user_email=calcat_config['user-email'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment