From 028cc01a4fa94e59e643da40f7bb0318fc4fa868 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 4 Oct 2022 11:21:59 +0300 Subject: Remove unnecessary variable Just assign the value of the function call directly to the dictionary key rather than using an intermediate variable. --- wqflask/wqflask/correlation/show_corr_results.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py index 4910b0e0..7623e18e 100644 --- a/wqflask/wqflask/correlation/show_corr_results.py +++ b/wqflask/wqflask/correlation/show_corr_results.py @@ -50,13 +50,11 @@ def set_template_vars(start_vars, correlation_data): target_dataset_ob = create_dataset(correlation_data['target_dataset']) correlation_data['target_dataset'] = target_dataset_ob.as_dict() - - table_json = correlation_json_for_table(correlation_data, - correlation_data['this_trait'], - correlation_data['this_dataset'], - target_dataset_ob) - - correlation_data['table_json'] = table_json + correlation_data['table_json'] = correlation_json_for_table( + correlation_data, + correlation_data['this_trait'], + correlation_data['this_dataset'], + target_dataset_ob) if target_dataset_ob.type == "ProbeSet": filter_cols = [7, 6] -- cgit v1.2.3