major-domo-v2/views
Cal Corum 2bfc87ac1b CLAUDE: Fix injury roll validation to support playoff weeks
Fixed bug where injury rolls during playoff weeks (19-21) were being rejected
with "weeks 1-18 only" error message.

Changes:
- Updated BatterInjuryModal and PitcherRestModal week validation
- Now uses config.weeks_per_season + config.playoff_weeks_per_season for max week
- Added dynamic game validation based on playoff round:
  * Regular season (weeks 1-18): 4 games per week
  * Playoff round 1 (week 19): 5 games
  * Playoff round 2 (week 20): 7 games
  * Playoff round 3 (week 21): 7 games
- Replaced hardcoded values with config-based calculations

Config values used:
- weeks_per_season (18)
- playoff_weeks_per_season (3)
- games_per_week (4)
- playoff_round_one_games (5)
- playoff_round_two_games (7)
- playoff_round_three_games (7)

Now injuries can be properly logged during all phases of the season including
playoffs with correct game validation for each round.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 00:56:39 -05:00
..
__init__.py CLAUDE: SUCCESSFUL STARTUP - Discord Bot v2.0 fully operational 2025-08-16 07:36:47 -05:00
base.py CLAUDE: Add toggleable stats to /player command and injury system improvements 2025-10-17 23:26:08 -05:00
CLAUDE.md CLAUDE: Add comprehensive CLAUDE.md documentation files for AI agent guidance 2025-10-20 20:30:07 -05:00
common.py CLAUDE: SUCCESSFUL STARTUP - Discord Bot v2.0 fully operational 2025-08-16 07:36:47 -05:00
confirmations.py CLAUDE: Add comprehensive scorecard submission system 2025-10-16 00:21:32 -05:00
custom_commands.py CLAUDE: Fix double emoji issue in Discord embeds 2025-10-16 23:09:21 -05:00
draft_views.py CLAUDE: Fix draft channel configuration not persisting 2025-10-24 22:52:57 -05:00
embeds.py CLAUDE: Refine injury roll display and cleanup imports 2025-10-16 22:20:13 -05:00
help_commands.py CLAUDE: Fix double emoji issue in Discord embeds 2025-10-16 23:09:21 -05:00
modals.py CLAUDE: Fix injury roll validation to support playoff weeks 2025-10-29 00:56:39 -05:00
players.py Hotfix: await team call 2025-10-21 14:58:30 -05:00
trade_embed.py CLAUDE: Fix trade system issues and enhance documentation 2025-10-06 16:10:13 -05:00
transaction_embed.py Follow-up updates for bug fix 2025-10-27 14:28:33 -05:00