diff --git a/commands/players/info.py b/commands/players/info.py index 2ebeba6..b974351 100644 --- a/commands/players/info.py +++ b/commands/players/info.py @@ -31,12 +31,13 @@ async def player_name_autocomplete( return [] try: - # Use the dedicated search endpoint to get matching players across ALL seasons + # Use the dedicated search endpoint to get matching players + # Search current season only for performance (all_seasons=True takes 15+ seconds) # Results are ordered by most recent season first players = await player_service.search_players( current, - limit=50, - all_seasons=True, # Fetch more to ensure 25 unique names + limit=30, + all_seasons=False, # Current season only to stay under 3-second timeout ) # Deduplicate by player name, keeping only the first (most recent) occurrence