Implement update_season_stats(game_id) in app/services/season_stats.py. Aggregates StratPlay batting/pitching stats and Decision win/loss/save data into PlayerSeasonStats with idempotency guard and dual-backend upsert (PostgreSQL EXCLUDED increments, SQLite read-modify-write). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| models | ||
| routers_v2 | ||
| seed | ||
| services | ||
| __init__.py | ||
| card_creation.py | ||
| db_engine.py | ||
| db_helpers.py | ||
| dependencies.py | ||
| main.py | ||
| player_scouting.py | ||