fix: local version update bug.

This commit is contained in:
EstrellaXD
2023-10-01 16:27:42 +08:00
parent 0738667520
commit c8e2e703d9

View File

@@ -6,6 +6,8 @@ from module.conf import VERSION, VERSION_PATH
def version_check() -> bool:
if VERSION == "DEV_VERSION":
return True
if VERSION == "local":
return True
if not VERSION_PATH.exists():
with open(VERSION_PATH, "w") as f:
f.write(VERSION + "\n")