Fix total number error. (#4339)

### What problem does this PR solve?

#4328

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu 2025-01-03 10:02:30 +08:00 committed by GitHub
parent 5dad15600c
commit 52c20033d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,8 +66,8 @@ class DocumentService(CommonService):
else:
docs = docs.order_by(cls.model.getter_by(orderby).asc())
docs = docs.paginate(page_number, items_per_page)
count = docs.count()
docs = docs.paginate(page_number, items_per_page)
return list(docs.dicts()), count
@classmethod