-
Notifications
You must be signed in to change notification settings - Fork 0
Detect intermission clock and return Intermission state #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -260,6 +260,10 @@ def get_live_state(self) -> LiveState: | |
| for field, (suffix, typ) in GAME_FIELD_MAP.items() | ||
| } | ||
| clock_timeout_running = self._get("Clock(Timeout).Running", bool) | ||
| # Check if intermission clock is running — if so, override game_state to show intermission | ||
| intermission_clock_running = self._get("Clock(Intermission).Running", bool) | ||
| if intermission_clock_running: | ||
| game_fields["game_state"] = "Intermission" | ||
|
Comment on lines
+263
to
+266
|
||
| # Pop timeout_clock_ms so we can conditionally suppress it below | ||
| # without it conflicting with the **game_fields unpack. | ||
| raw_timeout_clock_ms = game_fields.pop("timeout_clock_ms", None) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The inline-code examples include escaped quotes (e.g.
\"Intermission\",\"Running\"), which will render the backslashes in Markdown. Since these are code spans, the quotes don’t need escaping—use"Intermission"/"Running"without the backslashes (or just"Intermission"as plain text) so the README renders cleanly.