From 628cbe8f4dae4e3f7f91e135943d17e8be427eb2 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Tue, 20 Sep 2022 15:56:06 +0300 Subject: store text files in TMPDIR --- wqflask/wqflask/correlation/pre_computes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/correlation/pre_computes.py b/wqflask/wqflask/correlation/pre_computes.py index 6d5e5f04..afcea88f 100644 --- a/wqflask/wqflask/correlation/pre_computes.py +++ b/wqflask/wqflask/correlation/pre_computes.py @@ -171,7 +171,7 @@ def get_datasets_data(base_dataset, target_dataset_data): return (target_results, base_results) -def fetch_text_file(dataset_name, conn, text_dir=TEXTDIR): +def fetch_text_file(dataset_name, conn, text_dir=TMPDIR): """fetch textfiles with strain vals if exists""" with conn.cursor() as cursor: @@ -207,7 +207,7 @@ def read_text_file(sample_dict, file_path): return (sample_vals, [",".join([line[i] for i in _posit]) for line in csv_reader]) -def write_db_to_textfile(db_name, conn, text_dir=TEXTDIR): +def write_db_to_textfile(db_name, conn, text_dir=TMPDIR): def __generate_file_name__(db_name): # todo add expiry time and checker -- cgit v1.2.3