fix: Respect short_output parameter in player search endpoint #6
No reviewers
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-database#6
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/player-search-respect-short-output"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
player.team was None (only team_id was populated)
Fix:
objects, True returns just team IDs
Root cause analysis from production logs:
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com