major-domo-v2/utils
Cal Corum d1a6b57ccd
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m14s
fix: scorebug stale data, win probability parsing, and read-failure tolerance (closes #39, #40)
#40: ScorecardTracker cached data in memory at startup — background task never
saw newly published scorecards. Fixed by reloading from disk on every read.

#39: Win percentage defaulted to 50% when unavailable, showing a misleading
50/50 bar. Now defaults to None with "unavailable" message in embed. Parsing
handles decimal (0.75), percentage string, and empty values. Also fixed
orientation bug where win% was always shown as home team's even when the
sheet reports the away team as the leader.

Additionally: live scorebug tracker now distinguishes between "all games
confirmed final" and "sheet read failures" — transient Google Sheets errors
no longer hide the live scores channel.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:14:23 -06:00
..
__init__.py CLAUDE: Initial commit for discord-app-v2 rebuild 2025-08-15 00:04:50 -05:00
autocomplete.py fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
cache.py CLAUDE: Fix type annotations in CacheManager for JSON-serializable types 2025-10-14 00:22:01 -05:00
CLAUDE.md CLAUDE: Refactor dice rolling into reusable utility module and add /d20 command 2025-10-29 01:15:11 -05:00
decorators.py CLAUDE: Add draft period restriction to interactive draft commands 2025-10-25 20:29:16 -05:00
dice_utils.py CLAUDE: Refactor dice rolling into reusable utility module and add /d20 command 2025-10-29 01:15:11 -05:00
discord_helpers.py CLAUDE: Refactor scorebug display and add dynamic channel visibility 2025-10-22 16:58:21 -05:00
draft_helpers.py Fix draft cap validation using max_zeroes logic 2025-12-12 21:42:42 -06:00
helpers.py fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
injury_log.py fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
listeners.py Refactored listener logic and added SpoilerListener 2025-10-22 14:59:19 -05:00
logging.py fix: ContextualLogger crashes when callers pass exc_info=True 2026-02-19 21:19:06 -06:00
mentions.py Fix custom command mentions not triggering notifications 2026-01-28 15:45:38 -06:00
permissions_examples.py CLAUDE: Add flexible permission system for multi-server support 2025-11-06 11:29:29 -06:00
permissions.py Consolidate season config variables to single source (v2.21.0) 2025-12-02 16:12:16 -06:00
random_gen.py fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
scorebug_helpers.py fix: scorebug stale data, win probability parsing, and read-failure tolerance (closes #39, #40) 2026-02-20 14:14:23 -06:00
team_utils.py Consolidate season config variables to single source (v2.21.0) 2025-12-02 16:12:16 -06:00
text_utils.py CLAUDE: Add smart text splitting for Discord embed fields 2025-10-21 14:46:24 -05:00
transaction_logging.py fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00