diff --git a/app/routers_v2/teams.py b/app/routers_v2/teams.py index 696daf6..0b275fb 100644 --- a/app/routers_v2/teams.py +++ b/app/routers_v2/teams.py @@ -150,7 +150,10 @@ async def get_teams( all_teams = all_teams.where(Team.has_guide == True) if is_ai is not None: - all_teams = all_teams.where(Team.is_ai) + if not is_ai: + all_teams = all_teams.where(Team.is_ai == False) + else: + all_teams = all_teams.where(Team.is_ai == True) if event_id is not None: all_teams = all_teams.where(Team.event_id == event_id)