Extract website to SREBOT-web repo: remove web/, move seasons/locales/constants to repo root, fix imports

This commit is contained in:
clxud
2026-07-02 02:45:22 +00:00
parent c0214eaaae
commit 246a29f695
149 changed files with 4 additions and 137956 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ import BOT # noqa: F401, E402 — side effect: adds BOTS/SHARED to sys.path
from data_parser import apply_vehicle_name_filters # noqa: E402
LOCALES_DIR = Path(__file__).resolve().parent.parent / "web" / "locales"
LOCALES_DIR = Path(__file__).resolve().parent.parent / "locales"
DEFAULT_LANG = "en"
@@ -238,7 +238,7 @@ _STORAGE = Path(_storage_env)
SQUADRONS_DB = _STORAGE / "squadrons.db"
SQ_BATTLES_DB = _STORAGE / "sq_battles.db"
SEASONS_TXT = (Path(__file__).resolve().parent.parent
/ "web" / "constants" / "seasons")
/ "constants" / "seasons")
_BR_LINE_RE = re.compile(r"<t:(\d+):\w+>.*?max BR\s+(\d+(?:\.\d+)?)",
re.IGNORECASE)