|
All checks were successful
Ruff Lint / lint (pull_request) Successful in 27s
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
|
||
|---|---|---|
| .. | ||
| economy_new | ||
| players_new | ||
| admins.py | ||
| dev_tools.py | ||
| economy.py | ||
| gameplay.py | ||
| owner.py | ||
| players.py | ||
| refractor.py | ||