paper-dynasty-discord/cogs
Cal Corum 1c47928356
All checks were successful
Ruff Lint / lint (pull_request) Successful in 27s
fix(dev_tools): use unified cards/{id} endpoint for /dev refractor-test
The previous two-step battingcards→pitchingcards fallback caused card
ID collisions — e.g. card 494 resolving to Cameron Maybin (batting)
instead of the intended pitcher Grayson Rodriguez. The unified cards
endpoint is keyed on globally-unique card instance IDs and carries
player, team, and variant in a single response.

- Single db_get("cards", object_id=card_id) lookup
- Card type derived from player.pos_1 (SP→sp, RP/CP→rp, else→batter)
- team_id sourced from card["team"]["id"] (no get_team_by_owner fallback)
- TestRefractorTestSetup rewritten for the single-endpoint contract

Spec: docs/superpowers/specs/2026-04-11-refractor-test-unified-cards-lookup-design.md
2026-04-11 12:07:35 -05:00
..
economy_new Merge branch 'main' into hotfix/open-packs-checkin 2026-03-26 13:50:01 +00:00
players_new fix: log and handle ZeroDivisionError in gauntlet draft (#31) 2026-03-10 10:04:14 -05:00
admins.py fix: remove db_patch call — no PATCH endpoint for scout_opportunities 2026-03-09 10:55:22 -05:00
dev_tools.py fix(dev_tools): use unified cards/{id} endpoint for /dev refractor-test 2026-04-11 12:07:35 -05:00
economy.py fix: apply open-packs hotfix to cogs/economy.py 2026-03-26 13:04:19 -05:00
gameplay.py fix: guard GUILD_ID env var cast against missing/invalid value (#26) 2026-03-10 09:37:34 -05:00
owner.py New sync method 2024-12-18 09:59:39 -06:00
players.py refactor: extract TIER_NAMES/TIER_COLORS to shared constants module (#146) 2026-04-08 00:03:46 -05:00
refractor.py refactor: extract TIER_NAMES/TIER_COLORS to shared constants module (#146) 2026-04-08 00:03:46 -05:00