paper-dynasty-card-creation/pitchers
Cal Corum aaa2eaa252 fix: guard against T4 rarity upgrade collision in live-series pipeline (#57)
Closes #57

- Add RARITY_LADDER and rarity_is_downgrade() to rarity_thresholds.py
- Add get_fully_evolved_players() to db_calls.py — queries a to-be-created
  database endpoint; returns empty set safely if endpoint is unavailable
- In batters/creation.py post_player_updates(): pre-flight check identifies
  players where OPS rarity would downgrade, then guards the rarity write to
  skip any downgrade for fully-evolved (T4) cards
- Same guard added to pitchers/creation.py post_player_updates()

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 06:08:59 -05:00
..
__init__.py Refactor pit/bat/def to modules 2023-11-05 12:18:42 -06:00
calcs_pitcher.py Run black and ruff across entire codebase 2026-03-08 14:24:33 -05:00
card_builder.py Fix two bugs in pitcher card builder dispatch logic 2026-02-26 12:04:51 -06:00
creation.py fix: guard against T4 rarity upgrade collision in live-series pipeline (#57) 2026-04-08 06:08:59 -05:00
models.py Fix SLG formula drift in extracted rating models 2026-02-26 07:47:15 -06:00