исправлено передача синих логотипов для Зенит/Динамо и логотипы каналов не должны отображаться, когда у матча уже есть счет

This commit is contained in:
2026-08-04 10:20:54 +03:00
parent e17c287d65
commit 2c2d9b9a7c
3 changed files with 38 additions and 7 deletions

16
app.py
View File

@@ -35,7 +35,13 @@ from parsers.parser_players import run_parser_players
from parsers.parser_schedule import run_parser_schedule
from parsers.parser_standings import run_parser_standings
from parsers.parser_teams import run_parser_teams
from parsers.parser_sources import build_empty_photo_path, build_channel_logo_path, build_empty_channel_logo_path, list_parser_sources, get_default_source_key, get_parser_source
from parsers.parser_sources import (
build_empty_photo_path,
build_schedule_channel_logo_path,
list_parser_sources,
get_default_source_key,
get_parser_source,
)
from services.project_settings_service import build_project_settings_context, save_project_settings
from repositories.project_settings_repository import ensure_project_settings_tables
@@ -1850,9 +1856,11 @@ def vmix_schedule(session_token: str):
"#FFFFFF00" if row[2] is None and row[3] is None else "#FFFFFF"
),
"channel": (
build_channel_logo_path(row[8] if len(row) > 8 else None, row[7])
if str(row[7] or "").strip()
else build_empty_channel_logo_path(row[8] if len(row) > 8 else None)
build_schedule_channel_logo_path(
row[8] if len(row) > 8 else None,
row[7],
has_score=(row[2] is not None or row[3] is not None),
)
),
"channel_value": row[7] or "",
"source_key": row[8] if len(row) > 8 else "",