mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-04 19:58:26 +02:00
added scripts to update my default score to old_notation (file used by the bot game review to keep notation from older channels)
This commit is contained in:
parent
ac52a1f135
commit
df83fc81f2
1 changed files with 17 additions and 0 deletions
17
scripts/add_my_score_to_old_notation.py
Normal file
17
scripts/add_my_score_to_old_notation.py
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
import os
|
||||||
|
import json
|
||||||
|
os.chdir("..")
|
||||||
|
from source.CT_Config import CT_Config
|
||||||
|
|
||||||
|
ct_config = CT_Config()
|
||||||
|
ct_config.load_ctconfig_file()
|
||||||
|
|
||||||
|
with open(r"..\GameReview\MKWF\old_notation.json", "r", encoding="utf8") as f:
|
||||||
|
old_n = json.load(f)
|
||||||
|
|
||||||
|
track_list = list(filter(lambda x: x.since_version == "0.10", ct_config.unordered_tracks))
|
||||||
|
for track in track_list:
|
||||||
|
old_n[track.sha1] = {"216179546427359232": track.score}
|
||||||
|
|
||||||
|
with open(r"..\GameReview\MKWF\old_notation.json", "w", encoding="utf8") as f:
|
||||||
|
json.dump(old_n, f, ensure_ascii=False)
|
Loading…
Reference in a new issue