update 2. GTP-6, второй этап поправки ошибок

This commit is contained in:
2026-09-26 22:30:49 +03:00
parent 22e10b53b7
commit c707c60a35
47 changed files with 4579 additions and 1876 deletions

7
app.py
View File

@@ -23,6 +23,7 @@ from hockey_data.vmix_portable import (
configure_hockey_vmix_settings,
create_hockey_vmix_settings_router,
)
from hockey_data.async_work import run_db
from hockey_data.auth_bridge import HockeyAuthDependencies, create_auth_adapter
from hockey_data.auth_router import create_hockey_auth_router
from hockey_data.agent_bridge import VmixAgentHub, create_hockey_agent_router
@@ -30,7 +31,7 @@ from ui_builder import install_ui_builder
from khl_site.khl_data_center import APP as khl_site_app
BASE_DIR = Path(__file__).resolve().parent
BUILD_VERSION = "2026.09.26.1"
BUILD_VERSION = "2026.09.26.2"
# compatibility: BUILD_VERSION = "2026.09.24.2"
# compatibility: BUILD_VERSION = "2026.09.23.8"
# compatibility: BUILD_VERSION = "2026.09.23.7"
@@ -87,7 +88,8 @@ hockey_agent_hub = VmixAgentHub(hockey_database, settings=hockey_settings)
@app.on_event("startup")
async def hockey_mapping_auto_refresh_startup() -> None:
# BUILD151: isolated per-second schedule polling writes only to schedule_live.
hockey_service.ensure_schedule_live_table()
await run_db(hockey_service.ensure_schedule_live_table)
await run_db(hockey_agent_hub.mapping_data.ensure_defaults)
hockey_agent_hub.start_auto_refresh()
# BUILD143: schedules, standings and authoritative per-game scores refresh
# on the server even when no browser/operator is open.
@@ -240,6 +242,7 @@ install_ui_builder(
runtime_url="/",
custom_early_script_urls=[f"/hockey-assets/match-access.js?v={BUILD_VERSION}"],
custom_script_urls=[
f"/hockey-assets/session-activity.js?v={BUILD_VERSION}",
f"/hockey-assets/tournament-menu.js?v={BUILD_VERSION}",
f"/hockey-assets/admin-directories.js?v={BUILD_VERSION}",
"/hockey-assets/match-status-header.js",