diff options
author | Alexander Kabui | 2021-11-23 14:49:07 +0300 |
---|---|---|
committer | Alexander Kabui | 2021-11-23 14:49:07 +0300 |
commit | fffeb91789943a3c7db5a72d66405e2a0459ed44 (patch) | |
tree | c1bc9412f398c08f0d2ebee50e7ed81ffe24d128 | |
parent | bda4e460667909d47fd3a167391ca6fbe34cd61b (diff) | |
download | genenetwork2-fffeb91789943a3c7db5a72d66405e2a0459ed44.tar.gz |
fix for overwriting file
-rw-r--r-- | wqflask/wqflask/correlation/pre_computes.py | 5 |
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"): |