Skip to content

Commit

Permalink
Merge PR #449 into 17.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 6639917 + 0f51547 commit 991acb2
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 @@ -67,7 +67,7 @@ def 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 991acb2

Please sign in to comment.