From c8e2e703d9c36c2001d0ee075209b18811626ecc Mon Sep 17 00:00:00 2001 From: EstrellaXD Date: Sun, 1 Oct 2023 16:27:42 +0800 Subject: [PATCH] fix: local version update bug. --- backend/src/module/update/version_check.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/module/update/version_check.py b/backend/src/module/update/version_check.py index f3a89197..e0bc6fe8 100644 --- a/backend/src/module/update/version_check.py +++ b/backend/src/module/update/version_check.py @@ -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")