paper-dynasty-discord/command_logic
Cal Corum a56004fbd4
All checks were successful
Ruff Lint / lint (pull_request) Successful in 14s
fix: use card_type field instead of track_name string in variant renders (#149)
Closes #149

Replaces fragile track_name string matching ('Pitcher' check) with the
structured card_type field ('sp', 'rp', 'batter') already present in
refractor API data. Prevents silent wrong-type renders when track_name
varies ('Starting Pitcher', 'SP', etc.). Updates test fixtures and adds
assertions that verify the correct card type URL segment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 22:32:36 -05:00
..
__init__.py fix: add locked_play context manager to prevent stuck play locks 2026-02-10 21:54:44 -06:00
logic_gameplay.py fix: use card_type field instead of track_name string in variant renders (#149) 2026-04-07 22:32:36 -05:00
play_context.py fix: add locked_play context manager to prevent stuck play locks 2026-02-10 21:54:44 -06:00