diff options
Diffstat (limited to 'wqflask/utility')
-rw-r--r-- | wqflask/utility/startup_config.py | 2 | ||||
-rw-r--r-- | wqflask/utility/tools.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/wqflask/utility/startup_config.py b/wqflask/utility/startup_config.py index 59923fa1..69cac124 100644 --- a/wqflask/utility/startup_config.py +++ b/wqflask/utility/startup_config.py @@ -15,7 +15,7 @@ ENDC = '\033[0m' def app_config(): - app.config['SESSION_TYPE'] = 'filesystem' + app.config['SESSION_TYPE'] = app.config.get('SESSION_TYPE', 'filesystem') if not app.config.get('SECRET_KEY'): import os app.config['SECRET_KEY'] = str(os.urandom(24)) diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py index d4c83302..5b3e9413 100644 --- a/wqflask/utility/tools.py +++ b/wqflask/utility/tools.py @@ -335,3 +335,6 @@ assert_dir(JS_CYTOSCAPE_PATH) assert_file(JS_CYTOSCAPE_PATH + '/cytoscape.min.js') # assert_file(PHEWAS_FILES+"/auwerx/PheWAS_pval_EMMA_norm.RData") + +OAUTH2_CLIENT_ID = get_setting('OAUTH2_CLIENT_ID') +OAUTH2_CLIENT_SECRET = get_setting('OAUTH2_CLIENT_SECRET') |