Merge pull request 'hotfix: remove output caps from GET /players' (#103) from hotfix/remove-players-output-caps into main
All checks were successful
Build Docker Image / build (push) Successful in 1m3s

This commit is contained in:
cal 2026-04-02 01:19:51 +00:00
commit c063f5c4ef

View File

@ -10,8 +10,6 @@ from ..dependencies import (
oauth2_scheme,
cache_result,
handle_db_errors,
MAX_LIMIT,
DEFAULT_LIMIT,
)
from ..services.base import BaseService
from ..services.player_service import PlayerService
@ -30,7 +28,7 @@ async def get_players(
strat_code: list = Query(default=None),
is_injured: Optional[bool] = None,
sort: Optional[str] = None,
limit: int = Query(default=DEFAULT_LIMIT, ge=1, le=MAX_LIMIT),
limit: Optional[int] = Query(default=None, ge=1),
offset: Optional[int] = Query(
default=None, ge=0, description="Number of results to skip for pagination"
),