1. исправил agent.py
2. поменял явки и пароли для создания операторов 3. убрал из maches.html оператора, и добавил галочку завершенные матчи
This commit is contained in:
20
app.py
20
app.py
@@ -459,8 +459,15 @@ def admin_matches(
|
||||
request: Request,
|
||||
today_only: bool = Query(default=False),
|
||||
tour: str | None = Query(default=None),
|
||||
hide_finished: str = Query(default="true"),
|
||||
):
|
||||
matches = list_matches_for_admin(today_only=today_only, tour=tour)
|
||||
hide_finished_bool = str(hide_finished).lower() == "true"
|
||||
|
||||
matches = list_matches_for_admin(
|
||||
today_only=today_only,
|
||||
tour=tour,
|
||||
hide_finished=hide_finished_bool,
|
||||
)
|
||||
tours = list_available_tours()
|
||||
|
||||
return templates.TemplateResponse(
|
||||
@@ -469,13 +476,14 @@ def admin_matches(
|
||||
context={
|
||||
"matches": matches,
|
||||
"today_only": today_only,
|
||||
"hide_finished": hide_finished_bool,
|
||||
"selected_tour": tour or "",
|
||||
"tours": tours,
|
||||
"current_user": getattr(request.state, "current_user", None),
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
# @app.get("/admin/matches/{match_id}/select")
|
||||
# def select_match(
|
||||
# request: Request, match_id: int, operator_name: str = Form(default="")
|
||||
@@ -519,7 +527,7 @@ def select_match(
|
||||
|
||||
session_row = create_match_session(
|
||||
match_id=match_id,
|
||||
operator_name=operator_name.strip() or None,
|
||||
operator_name=None,
|
||||
vmix_project_path=None,
|
||||
)
|
||||
|
||||
@@ -533,7 +541,7 @@ def select_match(
|
||||
match_id=match_id,
|
||||
session_token=session_token,
|
||||
details={
|
||||
"operator_name": operator_name.strip() or None,
|
||||
"operator_name": None,
|
||||
},
|
||||
)
|
||||
|
||||
@@ -1354,7 +1362,7 @@ EMPTY_PLAYER_FORMATION = {
|
||||
"number": " ",
|
||||
"number_lastname_amp_K": " ",
|
||||
"position": " ",
|
||||
"photo": " ",
|
||||
"photo": r"D:\Графика\ФУТБОЛ\Женская Суперлига 2026\Photo\EMPTY.png",
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user