From 8892fd1826925a5d85ae8a966bb484365282d992 Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 23 Dec 2021 18:54:16 +0000 Subject: Set new_traits_metadata so caching is used (previously was always an empty dict) --- wqflask/wqflask/correlation/show_corr_results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py index 2c820658..4d2ac9ff 100644 --- a/wqflask/wqflask/correlation/show_corr_results.py +++ b/wqflask/wqflask/correlation/show_corr_results.py @@ -101,11 +101,11 @@ def correlation_json_for_table(correlation_data, this_trait, this_dataset, targe target_trait = dataset_metadata.get(trait_name) if target_trait is None: - target_trait_ob = create_trait(dataset=target_dataset_ob, name=trait_name, get_qtl_info=True) target_trait = jsonable(target_trait_ob, target_dataset_ob) + new_traits_metadata[trait_name] = target_trait if target_trait['view'] == False: continue results_dict = {} -- cgit v1.2.3