From f41c4be446e5308fa077074dfbf48569b98ded39 Mon Sep 17 00:00:00 2001 From: Boyan Date: Wed, 5 Apr 2023 22:19:53 +0200 Subject: [PATCH] Done --- README.md | 2 +- out.json => data/out.json | 0 main.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename out.json => data/out.json (100%) diff --git a/README.md b/README.md index 92adf32..6975c6d 100644 --- a/README.md +++ b/README.md @@ -21,4 +21,4 @@ Then move `db.json` to the `data` folder. `python main.py` ### Read `out.json`! -You can see what [its output is in our case](out.json). +You can see what [its output is in our case](data/out.json). diff --git a/out.json b/data/out.json similarity index 100% rename from out.json rename to data/out.json diff --git a/main.py b/main.py index 3449942..a5b1abb 100644 --- a/main.py +++ b/main.py @@ -87,7 +87,7 @@ def main(): new_signals["total_average"] = total_sum/3 # Write dictionary to file - with open('out.json', 'w', encoding='utf-8') as f: + with open('data/out.json', 'w', encoding='utf-8') as f: json.dump(new_signals, f, ensure_ascii=False, indent=4) if __name__ == "__main__":