удаления поправлены, сортировка элементов в титре поправлено, обоюдное удаление поправлено

This commit is contained in:
2026-08-20 12:48:11 +03:00
parent 81fd030846
commit 72d89ec02b
8 changed files with 142 additions and 38 deletions

View File

@@ -5537,8 +5537,13 @@ class HockeyDataService:
elif state_key not in {"5x5", ""}:
state_label = state_key.replace("x", " on " if language_key == "en" else " на ")
home_label = state_label if advantage_side == "home" else ""
away_label = state_label if advantage_side == "away" else ""
coincidental_penalties = bool(
home_penalties > 0
and away_penalties > 0
and home_skaters == away_skaters
)
home_label = state_label if advantage_side == "home" or coincidental_penalties else ""
away_label = state_label if advantage_side == "away" or coincidental_penalties else ""
phase_labels = {
"regulation": ("Основное время", "Regulation"),
"regular_overtime": ("Овертайм регулярки", "Regular OT"),