aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2021-11-11 20:32:13 +0300
committerAlexander Kabui2021-11-11 20:32:13 +0300
commitb4594a6f2dc5c0c0a8e62a327674126668391d6b (patch)
treec0be39861774e3ed59d7eea1155914d263449747
parentca4a5fdda8a7225dc5bebc17c61837ba5373ec68 (diff)
downloadgenenetwork2-b4594a6f2dc5c0c0a8e62a327674126668391d6b.tar.gz
minor fix for updating dict
-rw-r--r--wqflask/wqflask/correlation/pre_computes.py2
1 files changed, 1 insertions, 1 deletions
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)