1. добавил scheduler для онлайн матчей и турнирки
2. добавил в расписание тура маски для счета и времени Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
5
app.py
5
app.py
@@ -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
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user