From 86b4338b6665408243ceceb76372e17b853afbe7 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Tue, 3 Mar 2026 16:01:52 -0600 Subject: [PATCH] fix: remove duplicate ranking_max filter in get_teams (#21) Co-Authored-By: Claude Sonnet 4.6 --- app/routers_v2/teams.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/routers_v2/teams.py b/app/routers_v2/teams.py index c6b27ca..8347724 100644 --- a/app/routers_v2/teams.py +++ b/app/routers_v2/teams.py @@ -138,9 +138,6 @@ async def get_teams( if ranking_max is not None: all_teams = all_teams.where(Team.ranking <= ranking_max) - if ranking_max is not None: - all_teams = all_teams.where(Team.ranking <= ranking_max) - if has_guide is not None: # Use boolean comparison (PostgreSQL-compatible) if not has_guide: -- 2.25.1