Done
This commit is contained in:
parent
19fb4ce0d5
commit
f41c4be446
@ -21,4 +21,4 @@ Then move `db.json` to the `data` folder.
|
|||||||
`python main.py`
|
`python main.py`
|
||||||
|
|
||||||
### Read `out.json`!
|
### 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).
|
||||||
|
2
main.py
2
main.py
@ -87,7 +87,7 @@ def main():
|
|||||||
new_signals["total_average"] = total_sum/3
|
new_signals["total_average"] = total_sum/3
|
||||||
|
|
||||||
# Write dictionary to file
|
# 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)
|
json.dump(new_signals, f, ensure_ascii=False, indent=4)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user