Skip to content

Commit

Permalink
Merge PR #443 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by lmignon
  • Loading branch information
OCA-git-bot committed Aug 26, 2024
2 parents 2380e30 + 2a2e9f7 commit 71c2149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def optionally_authenticated_partner(


def paging(
page: Annotated[int, Query(gte=1)] = 1, page_size: Annotated[int, Query(gte=1)] = 80
page: Annotated[int, Query(ge=1)] = 1, page_size: Annotated[int, Query(ge=1)] = 80
) -> Paging:
"""Return a Paging object from the page and page_size parameters"""
return Paging(limit=page_size, offset=(page - 1) * page_size)
Expand Down

0 comments on commit 71c2149

Please sign in to comment.