Skip to content

Commit a51ff2a

Browse files
Space
1 parent 56e6bb5 commit a51ff2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/queries/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ def router_read_many[T: BaseModel, I: Identifiable]( # noqa: PLR0913
172172

173173
# unique is needed b/c it contains results that include joined eager loads against collections
174174
data = db.execute(data_query).scalars().unique()
175+
175176
total_items = db.execute(
176177
filter_query.with_only_columns(
177178
sa.func.count(sa.func.distinct(db_model_class.id)).label("count")

0 commit comments

Comments
 (0)