aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/data_set
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/base/data_set')
-rw-r--r--wqflask/base/data_set/datasetgroup.py2
-rw-r--r--wqflask/base/data_set/utils.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/base/data_set/datasetgroup.py b/wqflask/base/data_set/datasetgroup.py
index a44cf18d..7c3301fe 100644
--- a/wqflask/base/data_set/datasetgroup.py
+++ b/wqflask/base/data_set/datasetgroup.py
@@ -129,7 +129,7 @@ class DatasetGroup:
return study_samples
def get_genofiles(self):
- jsonfile = "%s/%s.json" % (get_setting(app, "WEBQTL_GENODIR"), self.name)
+ jsonfile = "%s/%s.json" % (get_setting(app, "GENODIR"), self.name)
try:
f = open(jsonfile)
except:
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: