mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fix: correct all results with whoosh queries
This commit is contained in:
parent
5f16d5f5f1
commit
75caba8edd
@ -70,9 +70,11 @@ class StandardPagination(PageNumberPagination):
|
|||||||
if hasattr(self.page.paginator.object_list, "saved_results"):
|
if hasattr(self.page.paginator.object_list, "saved_results"):
|
||||||
results_page = self.page.paginator.object_list.saved_results[0]
|
results_page = self.page.paginator.object_list.saved_results[0]
|
||||||
if results_page is not None:
|
if results_page is not None:
|
||||||
for i in range(len(results_page.results.docs())):
|
for doc_num in results_page.results.docs():
|
||||||
try:
|
try:
|
||||||
fields = results_page.results.fields(i)
|
fields = results_page.results.searcher.ixreader.stored_fields(
|
||||||
|
doc_num,
|
||||||
|
)
|
||||||
if "id" in fields:
|
if "id" in fields:
|
||||||
ids.append(fields["id"])
|
ids.append(fields["id"])
|
||||||
except Exception:
|
except Exception:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user