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:
raphael60650 2021-09-01 10:58:15 +02:00
parent ac52a1f135
commit df83fc81f2

View 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)