paper-dynasty-discord/cogs
Cal Corum c043948238 CLAUDE: Fix gauntlet game creation and Event 9 issues
Multiple fixes to resolve PlayNotFoundException and lineup initialization errors:

1. gauntlets.py:
   - Fixed Team object subscriptable errors (use .id instead of ['id'])
   - Added fallback cardsets (24, 25, 26) for Event 9 RP shortage
   - Fixed draft_team type handling (can be Team object or dict)

2. cogs/gameplay.py:
   - Fixed gauntlet game creation flow to read field player lineup from sheets
   - Catches LineupsMissingException when SP not yet selected
   - Instructs user to run /gamestate after SP selection

3. utilities/dropdown.py:
   - Fixed SelectStartingPitcher to create own session instead of using closed session
   - Store game/team IDs instead of objects to avoid detached session issues
   - Added exception handling for failed legality check API calls

These changes fix the issue where gauntlet games would fail to initialize
because the SP lineup entry wasn't being committed to the database.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-09 18:56:38 -06:00
..
economy_new S10 Updates + PR Bugfix 2025-11-09 06:12:46 -06:00
players_new Added search functionality to /player command 2025-10-08 14:45:41 -05:00
admins.py Catchup commit 2025-07-22 09:22:19 -05:00
economy.py S10 Updates + PR Bugfix 2025-11-09 06:12:46 -06:00
gameplay_legacy.py Add responders check to dropdowns 2024-12-27 22:33:25 -06:00
gameplay.py CLAUDE: Fix gauntlet game creation and Event 9 issues 2025-11-09 18:56:38 -06:00
owner.py New sync method 2024-12-18 09:59:39 -06:00
players.py Added search functionality to /player command 2025-10-08 14:45:41 -05:00
players.py.backup Cogs to Packages Groundwork 2025-08-17 08:46:55 -05:00