Added backend supported csv/json export functionality
This commit is contained in:
@@ -198,7 +198,10 @@ async def find( # noqa: C901, PLR0912
|
||||
elif order == SortOrder.DESC:
|
||||
stmt = stmt.order_by(*(f.desc() for f in sorts))
|
||||
|
||||
rows = await db.execute(stmt)
|
||||
rows = await db.execute(
|
||||
stmt,
|
||||
execution_options={"populate_existing": True},
|
||||
)
|
||||
result = list(rows.unique().scalars().all())
|
||||
if total_count is None:
|
||||
total_count = len(result)
|
||||
|
||||
Reference in New Issue
Block a user