aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2022-08-18 23:52:45 +0300
committerAlexander_Kabui2022-08-23 10:38:10 +0300
commitcbb5d0cc5874cc67cd562e0e7e983d20714d137e (patch)
tree12558edbe3af85232e05de0e7c39416dc92bb60c
parent4b2203ea3510ca13f28cbda3eef19dfe8cde6a0c (diff)
downloadgenenetwork2-cbb5d0cc5874cc67cd562e0e7e983d20714d137e.tar.gz
integrate code for fetching traits metadata
-rw-r--r--wqflask/wqflask/correlation/show_corr_results.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py
index f5fdd9b3..4910b0e0 100644
--- a/wqflask/wqflask/correlation/show_corr_results.py
+++ b/wqflask/wqflask/correlation/show_corr_results.py
@@ -93,8 +93,7 @@ def correlation_json_for_table(correlation_data, this_trait, this_dataset, targe
new_traits_metadata = {}
- (file_path, dataset_metadata) = fetch_all_cached_metadata(
- target_dataset['name'])
+ dataset_metadata = correlation_data["traits_metadata"]
for i, trait_dict in enumerate(corr_results):
trait_name = list(trait_dict.keys())[0]
@@ -187,10 +186,6 @@ def correlation_json_for_table(correlation_data, this_trait, this_dataset, targe
results_list.append(results_dict)
- cache_new_traits_metadata(dataset_metadata,
- new_traits_metadata,
- file_path)
-
return json.dumps(results_list)