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> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| base.py | ||
| CLAUDE.md | ||
| common.py | ||
| confirmations.py | ||
| custom_commands.py | ||
| draft_views.py | ||
| embeds.py | ||
| help_commands.py | ||
| modals.py | ||
| players.py | ||
| trade_embed.py | ||
| transaction_embed.py | ||