From e76f723104a1c9b4e3fc0f529e890debad8584cb Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Sun, 9 Oct 2022 19:33:14 +0300 Subject: Convert monadic_dict to normal dictionaries * wqflask/wqflask/correlation/show_corr_results.py (set_template_vars): Convert monadict_dict to a normal dictionary. (correlation_json_for_table): Ditto. --- wqflask/wqflask/correlation/show_corr_results.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py index 01772544..5da8a6b9 100644 --- a/wqflask/wqflask/correlation/show_corr_results.py +++ b/wqflask/wqflask/correlation/show_corr_results.py @@ -40,10 +40,10 @@ def set_template_vars(start_vars, correlation_data): name=start_vars['trait_id']) correlation_data['this_trait'] = jsonable(this_trait, this_dataset_ob) - correlation_data['this_dataset'] = this_dataset_ob.as_monadic_dict() + correlation_data['this_dataset'] = this_dataset_ob.as_monadic_dict().data target_dataset_ob = create_dataset(correlation_data['target_dataset']) - correlation_data['target_dataset'] = target_dataset_ob.as_monadic_dict() + correlation_data['target_dataset'] = target_dataset_ob.as_monadic_dict().data table_json = correlation_json_for_table(correlation_data, correlation_data['this_trait'], @@ -80,7 +80,7 @@ def correlation_json_for_table(start_vars, correlation_data, this_trait, this_da """ this_trait = correlation_data['this_trait'] this_dataset = correlation_data['this_dataset'] - target_dataset = target_dataset_ob.as_monadic_dict() + target_dataset = target_dataset_ob.as_monadic_dict().data corr_results = correlation_data['correlation_results'] results_list = [] -- cgit v1.2.3