mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-13 19:35:55 +08:00
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:
parent
5dad15600c
commit
52c20033d7
@ -66,8 +66,8 @@ class DocumentService(CommonService):
|
|||||||
else:
|
else:
|
||||||
docs = docs.order_by(cls.model.getter_by(orderby).asc())
|
docs = docs.order_by(cls.model.getter_by(orderby).asc())
|
||||||
|
|
||||||
docs = docs.paginate(page_number, items_per_page)
|
|
||||||
count = docs.count()
|
count = docs.count()
|
||||||
|
docs = docs.paginate(page_number, items_per_page)
|
||||||
return list(docs.dicts()), count
|
return list(docs.dicts()), count
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user