Ensure the build_numbers are of type int

This commit is contained in:
brostosjoined 2025-05-27 16:06:40 +03:00
parent ec866519e6
commit 4aca36757e
2 changed files with 3 additions and 8 deletions

View file

@ -1854,12 +1854,7 @@
}
],
"versions": {
"1.0.0": {
"api_version": 9,
"commit_sha": "f16abc3",
"released_on": "27-05-2025",
"md5sum": "6ba6b6510e0c2a98b817867f2fb62955"
}
"1.0.0": null
}
}
}

View file

@ -39,8 +39,8 @@ def fetch_update():
match = re.search(r'<td class="onlydesktop">(\d+)</td>', web_content)
if match:
latest_build_number = match.group(1)
current_build_number = babase.app.env.engine_build_number
latest_build_number = int(match.group(1))
current_build_number = int(babase.app.env.engine_build_number)
if latest_build_number == current_build_number:
return