поправлены сложные удаления
This commit is contained in:
@@ -5542,8 +5542,18 @@ class HockeyDataService:
|
||||
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 ""
|
||||
complex_mixed_penalties = bool(
|
||||
home_penalties > 0
|
||||
and away_penalties > 0
|
||||
and home_skaters != away_skaters
|
||||
)
|
||||
# BUILD88: numerical strength can already be 4x3/3x4 while both benches
|
||||
# still have active penalties. Keep advantage_side truthful for stats and
|
||||
# Mapping, but do not output the PP caption until one bench is completely
|
||||
# clear. Equal coincidental states (4x4/3x3) still show the configured
|
||||
# value on both sides as requested in BUILD81.
|
||||
home_label = state_label if coincidental_penalties or (advantage_side == "home" and not complex_mixed_penalties) else ""
|
||||
away_label = state_label if coincidental_penalties or (advantage_side == "away" and not complex_mixed_penalties) else ""
|
||||
phase_labels = {
|
||||
"regulation": ("Основное время", "Regulation"),
|
||||
"regular_overtime": ("Овертайм регулярки", "Regular OT"),
|
||||
|
||||
Reference in New Issue
Block a user