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> |
||
|---|---|---|
| .. | ||
| autocomplete.py | ||
| buttons.py | ||
| dropdown.py | ||
| embeds.py | ||
| pages.py | ||
| supabase.py | ||