Skip to content

Commit

Permalink
Fix up stats helpers (#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
vck3000 authored Jan 5, 2025
1 parent 57fb338 commit 7c423c0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/gameRecordsData/fix_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# pprint(json_data)

with open('gameRecordsDataAnon.json', 'w') as f:
f.write(str(json_data))
f.write(json.dumps(json_data))
10 changes: 10 additions & 0 deletions assets/gameRecordsData/test_file.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import json

with open('gameRecordsDataAnon.json', 'r') as f:
json_data = f.readline()

# print(json_data[0:4])

json_data = json.loads(json_data)

print(json_data[0])

0 comments on commit 7c423c0

Please sign in to comment.