fix(football): has_live_content() gates celebrations on live_priority - #630
Merged
Merged
Conversation
get_live_modes() only returns a celebrating league's live mode when that league is enabled with live_priority on, but has_live_content() counted a celebration in any enabled league. With live priority off for that league the controller saw live content and got no mode of this plugin for it. has_live_content() now asks _get_active_celebration_manager( live_priority_only=True), the same gate baseball and hockey got in #629. needs_high_fps and the display takeover keep the ungated lookup. football-scoreboard 3.18.9. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 13 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
This was referenced Oct 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Follow-up to #629. In football-scoreboard,
get_live_modes()returns a celebrating league's live mode only when that league is enabled withlive_priorityon.has_live_content(), though, counted a celebration in any enabled league. With live priority off for that league, the controller saw live content with no football live mode to go with it, and fell back to whichever*_livemode name it was scanning.Fix
has_live_content()now calls_get_active_celebration_manager(live_priority_only=True), which skips leagues whose registrylive_priorityis off. Baseball and hockey got the same gate in #629. The default isFalse, matching football's config default.needs_high_fpsand the display takeover still use the ungated lookup, so nothing changes there. A test stub intest_live_content_log_throttle.pythat overrode the helper now accepts the new keyword.Version
versions[]entry and a CHANGELOG entry.plugins.jsonis regenerated.Tests
The new
test_celebration_is_a_live_mode.pyhas 10 cases, parametrized over NFL and NCAA FB:has_live_content()agrees;live_priorityoff, neither method reports the celebration.Mutation checks: each change, removed on its own, fails the new tests.
run_plugin_tests.py(core main c20c0be), branch vs main:The failure is
test_football_plugin.pyon both: it stops at an interactive "run a 30-second emulator test? (y/n)" prompt.Guards:
scripts/test_*.pypass.check_sports_driftpasses with no baseline change.update_registry.py --check,check_version_bump.py --base origin/main football-scoreboard.check_plugin.pysafety harness passes.🤖 Generated with Claude Code