Paper Dynasty Database - PostgreSQL database service
The previous approach accumulated per-game deltas into season stats rows, which was fragile — partial processing corrupted stats, upsert bugs compounded, and there was no self-healing mechanism. Now update_season_stats() recomputes full season totals from all StratPlay rows for each affected player whenever a game is processed. The result replaces whatever was stored, eliminating double-counting and enabling self-healing via force=True. Also fixes: - evolution_evaluator.py: broken PlayerSeasonStats import → queries BattingSeasonStats or PitchingSeasonStats based on card_type - evolution_evaluator.py: r.k → r.strikeouts - test_evolution_models.py, test_postgame_evolution.py: PlayerSeasonStats → BattingSeasonStats (model never existed) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .gitea/workflows | ||
| app | ||
| docs | ||
| migrations | ||
| scripts | ||
| storage/templates | ||
| tests | ||
| .dockerignore | ||
| .env | ||
| .env.example | ||
| .gitignore | ||
| CLAUDE.md | ||
| compose.production.yml | ||
| docker-compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| pyproject.toml | ||
| requirements.txt | ||
| ruff.toml | ||
| VERSION | ||