- Add validation in create_game() and quick_create_game() to ensure both teams are successfully fetched from SBA API before creating game - Raise HTTP 400 with clear error message if team data cannot be fetched - Add warning logs in get_teams_by_ids() when teams are missing from result - Prevents games from being created with null team display info (names, abbreviations, colors, thumbnails) Root cause: get_teams_by_ids() silently returned empty dict on API failures, and game creation endpoints didn't validate the result. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| routes | ||
| __init__.py | ||
| CLAUDE.md | ||
| dependencies.py | ||