1
0
mirror of https://git.sr.ht/~tsileo/microblog.pub synced 2025-06-05 21:59:23 +02:00

Improve version handling

This commit is contained in:
Thomas Sileo
2022-08-24 09:02:20 +02:00
parent 6475714369
commit 3b767eae11
3 changed files with 18 additions and 8 deletions

View File

@ -14,6 +14,7 @@ from itsdangerous import URLSafeTimedSerializer
from loguru import logger
from app.utils.emoji import _load_emojis
from app.utils.version import get_version_commit
ROOT_DIR = Path().parent.resolve()
@ -24,7 +25,7 @@ VERSION_COMMIT = "dev"
try:
from app._version import VERSION_COMMIT # type: ignore
except ImportError:
pass
VERSION_COMMIT = get_version_commit()
# Force reloading cache when the CSS is updated
CSS_HASH = "none"