This commit is contained in:
Boyan 2023-04-05 22:19:53 +02:00
parent 19fb4ce0d5
commit f41c4be446
3 changed files with 2 additions and 2 deletions

View File

@ -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).

View File

@ -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__":