1. добавил scheduler для онлайн матчей и турнирки

2. добавил в расписание тура маски для счета и времени

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-23 17:39:44 +03:00
parent 44ec5cc69a
commit 32d1f8afa6
4 changed files with 603 additions and 0 deletions

5
app.py
View File

@@ -110,10 +110,13 @@ from services.vmix_json_service import (
get_vmix_players_goal,
)
from scheduler import run_scheduler
BASE_DIR = Path(__file__).resolve().parent
app = FastAPI()
templates = Jinja2Templates(directory=str(BASE_DIR / "templates"))
app.mount("/static", StaticFiles(directory=str(BASE_DIR / "static")), name="static")
run_scheduler()
class PublishVmixCommandPayload(BaseModel):
match_id: int
@@ -1426,6 +1429,8 @@ def vmix_schedule(session_token: str):
"color": (
"#37F193" if row[5] not in ["scheduled", "finished"] else "#FFFFFF00"
),
"mask_time": "#FFFFFF00" if row[2] is not None and row[3] is not None else "#FFFFFF",
"mask_score": "#FFFFFF00" if row[2] is None and row[3] is None else "#FFFFFF",
}
for row in rows
]