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

Fix picking when to use Oauth

parent 8b35dd70
No related branches found
No related tags found
1 merge request!885Revised CalCat API
...@@ -23,7 +23,7 @@ def get_client(): ...@@ -23,7 +23,7 @@ def get_client():
def setup_client(base_url, client_id, client_secret, user_email, **kwargs): def setup_client(base_url, client_id, client_secret, user_email, **kwargs):
global global_client global global_client
global_client = CalibrationClient( global_client = CalibrationClient(
use_oauth2=(client_id is None), use_oauth2=(client_id is not None),
client_id=client_id, client_id=client_id,
client_secret=client_secret, client_secret=client_secret,
user_email=user_email, user_email=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