Добавлена модалка «О проекте», версия 0.1.2; Jenkins берёт VERSION из коммита.

This commit is contained in:
Sergey Antropoff
2026-07-27 23:11:27 +03:00
parent f431fc3c1c
commit 9be207154e
13 changed files with 177 additions and 218 deletions
+2 -1
View File
@@ -26,8 +26,8 @@ def _read_version_file(path: Path) -> str | None:
@lru_cache
def get_app_version() -> str:
for path in (
_VERSION_FILE,
Path("/app/VERSION"),
_VERSION_FILE,
Path.cwd() / "VERSION",
):
found = _read_version_file(path)
@@ -45,6 +45,7 @@ def get_app_version() -> str:
def get_app_version_label() -> str:
clear_version_cache()
return f"v{get_app_version()}"