Fix is_ai filter to respect False value in get_teams #22

Closed
opened 2026-02-20 06:53:06 +00:00 by cal · 1 comment
Owner

`app/routers_v2/teams.py:152-153`. `all_teams.where(Team.is_ai)` always filters for AI teams regardless of whether caller passed `is_ai=False`.

Priority: medium

\`app/routers_v2/teams.py:152-153\`. \`all_teams.where(Team.is_ai)\` always filters for AI teams regardless of whether caller passed \`is_ai=False\`. **Priority**: medium
cal added the
bug
label 2026-02-20 06:53:06 +00:00
cal added the
ai-working
label 2026-03-03 21:31:11 +00:00
cal added
ai-pr-opened
and removed
ai-working
labels 2026-03-03 21:32:32 +00:00
Author
Owner

Fixed in PR #41: #41

The is_ai filter now uses explicit boolean comparison (Team.is_ai == False / Team.is_ai == True), matching the existing has_guide pattern. Previously all_teams.where(Team.is_ai) always filtered for AI teams regardless of the passed value.

Fixed in PR #41: https://git.manticorum.com/cal/paper-dynasty-database/pulls/41 The `is_ai` filter now uses explicit boolean comparison (`Team.is_ai == False` / `Team.is_ai == True`), matching the existing `has_guide` pattern. Previously `all_teams.where(Team.is_ai)` always filtered for AI teams regardless of the passed value.
cal closed this issue 2026-03-10 18:26:26 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cal/paper-dynasty-database#22
No description provided.