Particular revert "Update module_parsing"

This reverts commit 78141ae9aa.

Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
2023-10-22 22:34:50 +07:00
parent 7991cde695
commit 66a571309d
2 changed files with 6 additions and 19 deletions

View File

@@ -1,12 +0,0 @@
{
"ats": {
"dlc": "c5f4adb336a6c2a7f1987f00c61c8d48",
"agencies": "7b6eb8747a5b51d5d03869884e4b6e80",
"dealers": "4e3b0d639a6bc85b2e25af2f73656d21"
},
"ets2": {
"dlc": "d3634f683550d9f9d87ad3c1ff579561",
"agencies": "cd71f9d0a0b53bbc5c1ae127936455c8",
"dealers": "c045068fa3fe4eaf3a2cae7b8ec05066"
}
}

View File

@@ -35,16 +35,15 @@ def check_path(path):
def check_remote_hashes():
# response_status, response = get_response_result(github_link + "configs/version.cfg")
response_status, response = get_response_result(github_link + "configs/version_new.cfg")
response_status, response = get_response_result(github_link + "configs/version.cfg")
if response_status:
remote_cfg = literal_eval(response.text)
need_update = []
for game, cfg in remote_cfg.items():
for f_name, f_hash in cfg.items():
path = "configs/{}/{}.json".format(game, f_name)
if util.generate_md5(path) != f_hash:
need_update.append(path)
for key, value in remote_cfg.items():
path = key.split("_")
path = "configs/{}/{}.json".format(path[0], path[1])
if util.generate_md5(path) != value:
need_update.append(path)
return need_update
return False