Skip to content

Commit

Permalink
Merge pull request #76 from lautarodapin/pagination-pr
Browse files Browse the repository at this point in the history
Pagination class PATCH Updated ``StreamedPaginatedListMixin``
  • Loading branch information
hishnash authored Jun 20, 2021
2 parents 5222ad6 + 7c8886d commit 3659a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangochannelsrestframework/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ async def list(self, action, request_id, **kwargs):
limit = data.get("limit", 0)
offset = data.get("offset", 0)

if offset < count:
if offset < (count - limit):
kwargs["offset"] = limit + offset

await self.list(action=action, request_id=request_id, **kwargs)

0 comments on commit 3659a47

Please sign in to comment.