апдейт
This commit is contained in:
@@ -217,11 +217,10 @@ def fetch_match_live_data(match_id: int) -> dict:
|
||||
live = soup.find("section", class_=lambda c: c and "game--live" in c)
|
||||
if live:
|
||||
return {"status": "live", "home_score": home, "away_score": away}
|
||||
else:
|
||||
if home and away:
|
||||
return {"status": "finished", "home_score": home, "away_score": away}
|
||||
elif not live and home and away:
|
||||
return {"status": "finished", "home_score": home, "away_score": away}
|
||||
|
||||
# return {"status": "scheduled", "home_score": home, "away_score": away}
|
||||
return {"status": "scheduled", "home_score": home, "away_score": away}
|
||||
|
||||
# =========================================================
|
||||
# ЛОГИКА ЗАПУСКА WATCHER'ОВ
|
||||
|
||||
@@ -15,7 +15,7 @@ from repositories.auth_repository import (
|
||||
revoke_auth_session,
|
||||
)
|
||||
|
||||
IDLE_TIMEOUT_SECONDS = 2 * 60 * 60
|
||||
IDLE_TIMEOUT_SECONDS = 99999
|
||||
SESSION_TOUCH_THROTTLE_SECONDS = 60
|
||||
PBKDF2_ITERATIONS = 260_000
|
||||
|
||||
|
||||
@@ -2338,6 +2338,8 @@ function buildVmixCommandsFromFormation(side) {
|
||||
const players = Array.isArray(formationState[side]) ? formationState[side] : [];
|
||||
const commands = [];
|
||||
const playerPrefix = side === "home" ? "HOME" : "AWAY";
|
||||
const inputName = side === "home" ? "РАССТАНОВКА - ХОЗЯЕВА" : "РАССТАНОВКА - ГОСТИ";
|
||||
|
||||
|
||||
if (players.length < 2) {
|
||||
return [];
|
||||
@@ -2351,6 +2353,19 @@ function buildVmixCommandsFromFormation(side) {
|
||||
const x = convertPitchXToPan(player.x).toFixed(3);
|
||||
const y = convertPitchYToPan(player.y).toFixed(3);
|
||||
|
||||
|
||||
for (let i = 1; i <= 10; i++) {
|
||||
commands.push(
|
||||
vmixCmd(`Function=ResetInput&Input=${encodeURIComponent(`${playerPrefix} - Игрок${i}`)}`)
|
||||
);
|
||||
};
|
||||
|
||||
commands.push(
|
||||
vmixCmd(`Function=ResetInput&Input=${encodeURIComponent(inputName)}`)
|
||||
);
|
||||
|
||||
|
||||
|
||||
commands.push(
|
||||
vmixCmd(`Function=SetPanX&Input=${encodeURIComponent(playerInputName)}&Value=${x}`)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user