Skip to content

Commit

Permalink
fixed pagination for prefiltered selects
Browse files Browse the repository at this point in the history
  • Loading branch information
Arfey committed Apr 5, 2024
1 parent f9494ca commit fb826fa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ async def get_list(
else:
count: int = await self._execute_scalar(
conn,
sa.select(func.count()).select_from(self.get_list_select())
sa.select(func.count()).select_from(
self.get_list_select()
)
)
return self.create_paginator(
instances=res,
Expand Down

0 comments on commit fb826fa

Please sign in to comment.