paper-dynasty-discord/in_game
Cal Corum 22d15490dd Add pitcher validation with rank retry in get_starting_pitcher
When API returns a pitcher without pitching data (e.g., Ohtani with
pos_1=DH), explicitly fetch pitcherscouting and validate before use.
If validation fails, retry with different sp_rank values.

Retry strategy: increment rank first, if > 5 then decrement from
original rank, ensuring all 5 ranks are tried before giving up.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 14:04:03 -06:00
..
ai_manager.py Add pitcher validation with rank retry in get_starting_pitcher 2026-01-30 14:04:03 -06:00
data_cache.py Update logging to RotatingFileHandler 2024-11-09 23:14:54 -06:00
game_helpers.py Helpers checks 2025-01-24 10:08:35 -06:00
gameplay_models.py Fix team_lineup crash when pitcher lacks pitcherscouting 2026-01-30 13:17:26 -06:00
gameplay_queries.py Update gameplay_queries.py 2025-07-23 08:58:41 -05:00
managerai_responses.py Batter subs plus cleanup 2024-12-23 10:09:11 -06:00
simulations.py Update api logging 2024-11-16 00:31:54 -06:00