feat: Card Evolution Phase 1 — full backend implementation #130

Merged
cal merged 32 commits from card-evolution into main 2026-03-23 18:20:22 +00:00
Showing only changes of commit d15fc97afb - Show all commits

View File

@ -76,7 +76,8 @@ def _get_player_pairs(game_id: int) -> tuple[set, set]:
for batter_id, batter_team_id, pitcher_id, pitcher_team_id in plays:
if batter_id is not None:
batting_pairs.add((batter_id, batter_team_id))
pitching_pairs.add((pitcher_id, pitcher_team_id))
if pitcher_id is not None:
pitching_pairs.add((pitcher_id, pitcher_team_id))
# Include pitchers who have a Decision but no StratPlay rows for this game
# (rare edge case, e.g. a pitcher credited with a decision without recording