тест 11
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user