Major Domo Database - PostgreSQL database service for SBA bot
Go to file
Cal Corum 39bc99b0dd
Some checks failed
Build Docker Image / build (pull_request) Failing after 15s
fix: Respect short_output parameter in player search endpoint
The search_players() method was hardcoding short_output=True when
converting query results to dicts, ignoring the function parameter.
This caused the /api/v3/players/search endpoint to always return
team_id as an integer instead of nested team objects, even when
short_output=False was specified.

Impact:
- Discord bot's /injury clear command was crashing because
  player.team was None (only team_id was populated)
- Any code using search endpoint couldn't get full team data

Fix:
- Changed line 386 to use the short_output parameter value
- Now respects short_output parameter: False returns full team
  objects, True returns just team IDs

Root cause analysis from production logs:
- Error: AttributeError: 'NoneType' object has no attribute 'roster_type'
- Location: commands/injuries/management.py:647
- Cause: player.team was None after search_players() call

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-05 19:43:50 -06:00
.claude chore: Move documentation to .claude/ 2026-02-05 13:14:09 -06:00
.gitea/workflows Add Gitea Actions CI/CD pipeline 2026-02-04 11:43:18 -06:00
app fix: Respect short_output parameter in player search endpoint 2026-02-05 19:43:50 -06:00
migrations Add salary_cap column to Team model (v2.2.0) 2025-12-10 07:28:16 -06:00
scripts CLAUDE: Add --clean flag to production database sync 2025-10-23 16:52:42 -05:00
tests fix: Complete dependency injection refactor and restore caching 2026-02-04 01:13:46 -06:00
.dockerignore Adding Git and Docker files 2023-02-21 11:53:02 -06:00
.env Local migration fully functional 2025-08-20 09:52:46 -05:00
.gitignore Local migration fully functional 2025-08-20 09:52:46 -05:00
CLAUDE.md Fix custom command creator POST validation (v2.3.1) 2025-12-13 16:31:47 -06:00
deploy.sh Add Gitea Actions CI/CD pipeline 2026-02-04 11:43:18 -06:00
docker-compose.yml chore: Comment out external network for local testing 2026-02-04 21:00:02 -06:00
Dockerfile Local migration fully functional 2025-08-20 09:52:46 -05:00
LICENSE Initial commit 2023-02-19 21:42:32 -06:00
pytest.ini refactor: Add dependency injection for testability 2026-02-03 15:59:04 +00:00
requirements.txt refactor: Add dependency injection for testability 2026-02-03 15:59:04 +00:00
VERSION Bump version 2026-02-05 13:12:55 -06:00