paper-dynasty-discord/utilities
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
..
autocomplete.py Added search functionality to /player command 2025-10-08 14:45:41 -05:00
buttons.py New postion sub logic 2025-03-09 00:59:10 -06:00
dropdown.py CLAUDE: Fix gauntlet game creation and Event 9 issues 2025-11-09 18:56:38 -06:00
embeds.py Gauntlet evolution fix 2025-02-09 21:38:19 -06:00
pages.py Added Brilliant Stars gauntlet 2024-12-24 00:22:30 -06:00
supabase.py Remove outdate image links 2025-06-04 09:54:13 -05:00