Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 8486cc4b authored by GARNIER Laurent's avatar GARNIER Laurent
Browse files

Update allgo/__init__.py

parent 03f573d1
Branches
Tags
1 merge request!7Jupyter token 2021
...@@ -151,7 +151,7 @@ class Init: ...@@ -151,7 +151,7 @@ class Init:
# Check all methods # Check all methods
# notebook, local_file, env_variable, arg_variable # notebook, local_file, env_variable, arg_variable
if(API_parameters['auth_method'] == 'notebook'): if(API_parameters['auth_method'] == 'notebook'):
if (API_parameters.get('API_token') = none): if (not API_parameters.get('API_token')):
API_parameters['API_token'] = secrets.token_hex(16) API_parameters['API_token'] = secrets.token_hex(16)
print('Notebook token created') print('Notebook token created')
elif(API_token_valid): elif(API_token_valid):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment