Skip to content

Commit

Permalink
fix: fix bug in paginate function
Browse files Browse the repository at this point in the history
  • Loading branch information
Hojagulyyev committed Dec 3, 2023
1 parent 780a4ea commit bf962b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rp2/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ def paginate(
page_size: (int | None) = None,
) -> Any:

if page is None:
if not page:
page = DEFAULT_PAGINATION_PAGE

if page_size is None:
if not page_size:
page_size = DEFAULT_PAGINATION_PAGE_SIZE

if int(page_size) > MAX_PAGE_SIZE:
Expand Down

0 comments on commit bf962b1

Please sign in to comment.