aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/data_set/utils.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-06-20 08:11:04 +0300
committerFrederick Muriuki Muriithi2023-06-20 13:36:50 +0300
commit8f3b998db0698298f828698e93e1f8f19a9c23d7 (patch)
tree7655b52d0f5f7c42e75236d4942eef8e255a7508 /wqflask/base/data_set/utils.py
parent24450cd319ad3bc43f119933cd9d6cf165bc4682 (diff)
downloadgenenetwork2-8f3b998db0698298f828698e93e1f8f19a9c23d7.tar.gz
Restore configuration variables' names
The names had been changed when refactoring the code but can now be restored.
Diffstat (limited to 'wqflask/base/data_set/utils.py')
-rw-r--r--wqflask/base/data_set/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/base/data_set/utils.py b/wqflask/base/data_set/utils.py
index 11391d69..7f55989f 100644
--- a/wqflask/base/data_set/utils.py
+++ b/wqflask/base/data_set/utils.py
@@ -57,7 +57,7 @@ def cache_dataset_results(dataset_name: str, dataset_type: str, samplelist: List
samplelist_as_str = ",".join(samplelist)
file_name = generate_hash_file(dataset_name, dataset_type, table_timestamp, samplelist_as_str)
- file_path = os.path.join(app.config["WEBQTL_TMPDIR"], f"{file_name}.json")
+ file_path = os.path.join(app.config["TMPDIR"], f"{file_name}.json")
with open(file_path, "w") as file_handler:
json.dump(query_results, file_handler)
@@ -70,7 +70,7 @@ def fetch_cached_results(dataset_name: str, dataset_type: str, samplelist: List)
samplelist_as_str = ",".join(samplelist)
file_name = generate_hash_file(dataset_name, dataset_type, table_timestamp, samplelist_as_str)
- file_path = os.path.join(app.config["WEBQTL_TMPDIR"], f"{file_name}.json")
+ file_path = os.path.join(app.config["TMPDIR"], f"{file_name}.json")
try:
with open(file_path, "r") as file_handler: