From 99a8ea98e24c365b689106eca7a6a74f6d4097f4 Mon Sep 17 00:00:00 2001 From: Stephan Porada Date: Thu, 8 Oct 2020 15:34:28 +0200 Subject: [PATCH] Rename NOPAQUE_STORAGE to DATA_DIR --- web/app/corpora/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/app/corpora/views.py b/web/app/corpora/views.py index 11a3f6cd..758cd512 100644 --- a/web/app/corpora/views.py +++ b/web/app/corpora/views.py @@ -254,7 +254,7 @@ def add_query_result(): db.session.add(query_result) db.session.commit() # create paths to save the uploaded json file - query_result_dir = os.path.join(current_app.config['NOPAQUE_STORAGE'], + query_result_dir = os.path.join(current_app.config['DATA_DIR'], str(current_user.id), 'query_results', str(query_result.id)) @@ -329,7 +329,7 @@ def inspect_query_result(query_result_id): prefix='inspect-display-options-form' ) query_result_file_path = os.path.join( - current_app.config['NOPAQUE_STORAGE'], + current_app.config['DATA_DIR'], str(current_user.id), 'query_results', str(query_result.id), @@ -364,7 +364,7 @@ def download_query_result(query_result_id): if not (query_result.creator == current_user or current_user.is_administrator()): abort(403) - query_result_dir = os.path.join(current_app.config['NOPAQUE_STORAGE'], + query_result_dir = os.path.join(current_app.config['DATA_DIR'], str(current_user.id), 'query_results', str(query_result.id))