Skip to content

Commit

Permalink
Add docs to sort_by field
Browse files Browse the repository at this point in the history
  • Loading branch information
raimannma committed Dec 16, 2024
1 parent 2a7aaef commit 3ac15b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deadlock_analytics_api/routers/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ def get_hero_combs_win_loss_stats(
min_total_matches: Annotated[
int | None, Query(ge=0, description="Minimum total matches")
] = None,
sorted_by: Literal["winrate", "wins", "matches"] | None = None,
sorted_by: Annotated[
Literal["winrate", "wins", "matches"] | None,
Query(description="Sort output descending by this field"),
] = None,
limit: Annotated[int | None, Query(ge=0)] = None,
min_badge_level: Annotated[int | None, Query(ge=0)] = None,
max_badge_level: Annotated[int | None, Query(le=116)] = None,
Expand Down

0 comments on commit 3ac15b2

Please sign in to comment.