обновил статусы удалений

This commit is contained in:
2026-09-28 16:55:33 +03:00
parent 0fc72b481d
commit 3875180638
3 changed files with 45209 additions and 36091 deletions

View File

@@ -7010,17 +7010,11 @@ class HockeyDataService:
if not assigned:
continue
# BUILD96: a prepared penalty must not change numerical strength until
# the operator explicitly starts it. New Runtime snapshots always send
# startedOnce. Legacy snapshots (without the marker) keep the old
# assigned-immediately behaviour for backward compatibility.
has_started_marker = "startedOnce" in item or "started_once" in item
if has_started_marker:
started = bool(item.get("startedOnce", item.get("started_once", False))) or bool(item.get("running", False))
else:
started = bool(item.get("running", False)) or remaining_ms < duration_ms or assigned
if not started:
continue
# A complete/assigned penalty changes numerical strength immediately,
# as soon as the side/infraction/preset/time are present. The countdown
# itself may still be stopped (startedOnce=false, running=false): vMix
# strength captions and the penalty plate must already reflect the new
# 5x4 / 5x3 / 4x4 state before the operator starts the clock.
if side == "home":
home += 1
else: