тест 11

This commit is contained in:
2026-08-25 16:56:38 +03:00
parent 9ab53ac8d5
commit 9b4db7dc04
4745 changed files with 130 additions and 31476998 deletions

View File

@@ -5469,17 +5469,10 @@ 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
# BUILD113: as soon as the operator has fully assigned a penalty, it
# already affects the scorebug numerical strength. The penalty clock may
# still be stopped; Start controls only the countdown, not the displayed
# 5x4 / 4x3 state. Incomplete drafts are filtered out by `assigned` above.
if side == "home":
home += 1
else: