поправлены еще раз удаления
This commit is contained in:
@@ -5537,13 +5537,22 @@ class HockeyDataService:
|
||||
elif state_key not in {"5x5", ""}:
|
||||
state_label = state_key.replace("x", " on " if language_key == "en" else " на ")
|
||||
|
||||
# BUILD89: television output has only one power-play plate. Equal
|
||||
# coincidental strength never gets a side caption. As soon as a real
|
||||
# numerical advantage exists (including 4x3 / 3x4 with penalties on both
|
||||
# benches), expose the configured state label only on the advantage side.
|
||||
# `state_label` itself remains available in Mapping for custom graphics.
|
||||
home_label = state_label if advantage_side == "home" else ""
|
||||
away_label = state_label if advantage_side == "away" else ""
|
||||
# BUILD91: Mapping captions describe both sides independently. The
|
||||
# numerical-advantage side keeps the configured PP/state caption, while
|
||||
# a penalized side that is not the advantage side gets a plain Penalty
|
||||
# caption. This does not control whether the television penalty plate is
|
||||
# on air; that remains the single-plate logic in the runtime.
|
||||
penalty_caption = "Penalty" if language_key == "en" else "Удаление"
|
||||
home_label = (
|
||||
state_label if advantage_side == "home"
|
||||
else penalty_caption if home_penalties > 0
|
||||
else ""
|
||||
)
|
||||
away_label = (
|
||||
state_label if advantage_side == "away"
|
||||
else penalty_caption if away_penalties > 0
|
||||
else ""
|
||||
)
|
||||
phase_labels = {
|
||||
"regulation": ("Основное время", "Regulation"),
|
||||
"regular_overtime": ("Овертайм регулярки", "Regular OT"),
|
||||
|
||||
Reference in New Issue
Block a user