From b4594a6f2dc5c0c0a8e62a327674126668391d6b Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Thu, 11 Nov 2021 20:32:13 +0300 Subject: minor fix for updating dict --- wqflask/wqflask/correlation/pre_computes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wqflask/wqflask/correlation/pre_computes.py b/wqflask/wqflask/correlation/pre_computes.py index 55f25f0b..4244fcfb 100644 --- a/wqflask/wqflask/correlation/pre_computes.py +++ b/wqflask/wqflask/correlation/pre_computes.py @@ -47,7 +47,7 @@ def cache_compute_results(start_vars, results = json.load(json_handler) - if results.get(trait_name) is not None: + if results.get(trait_name) is None: results.update({trait_name: correlation_results}) json.dump(results, json_handler) -- cgit v1.2.3