From 7c8886dd5440cd7643595b4d15f25d4ecd48e178 Mon Sep 17 00:00:00 2001 From: Lautaro Nahuel Dapino <43883304+lautarodapin@users.noreply.github.com> Date: Thu, 13 May 2021 17:52:05 -0300 Subject: [PATCH] Updated ``StreamedPaginatedListMixin`` Updated the condition to send another result --- djangochannelsrestframework/mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangochannelsrestframework/mixins.py b/djangochannelsrestframework/mixins.py index 0cf7507..fb2c44a 100644 --- a/djangochannelsrestframework/mixins.py +++ b/djangochannelsrestframework/mixins.py @@ -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)