aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorAlexander Kabui2021-11-23 14:49:07 +0300
committerAlexander Kabui2021-11-23 14:49:07 +0300
commitfffeb91789943a3c7db5a72d66405e2a0459ed44 (patch)
treec1bc9412f398c08f0d2ebee50e7ed81ffe24d128 /wqflask
parentbda4e460667909d47fd3a167391ca6fbe34cd61b (diff)
downloadgenenetwork2-fffeb91789943a3c7db5a72d66405e2a0459ed44.tar.gz
fix for overwriting file
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/correlation/pre_computes.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/wqflask/wqflask/correlation/pre_computes.py b/wqflask/wqflask/correlation/pre_computes.py
index ad0bc6ef..975a53b8 100644
--- a/wqflask/wqflask/correlation/pre_computes.py
+++ b/wqflask/wqflask/correlation/pre_computes.py
@@ -28,8 +28,9 @@ def cache_new_traits_metadata(dataset_metadata: dict, new_traits_metadata, file_
if bool(new_traits_metadata):
dataset_metadata.update(new_traits_metadata)
- with open(file_path, "w+") as file_handler:
- json.dump(dataset_metadata, file_handler)
+
+ with open(file_path, "w+") as file_handler:
+ json.dump(dataset_metadata, file_handler)
def generate_filename(*args, suffix="", file_ext="json"):