We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8be220d commit 7d98f12Copy full SHA for 7d98f12
advanced_alchemy/repository/_async.py
@@ -1707,6 +1707,8 @@ async def _list_and_count_basic(
1707
),
1708
)
1709
count = count_result.scalar_one()
1710
+ if count == 0:
1711
+ return [], 0
1712
result = await self._execute(statement, uniquify=loader_options_have_wildcard)
1713
instances: list[ModelT] = []
1714
for (instance,) in result:
advanced_alchemy/repository/_sync.py
@@ -1706,6 +1706,8 @@ def _list_and_count_basic(
1706
result = self._execute(statement, uniquify=loader_options_have_wildcard)
0 commit comments