A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
fix page out of range with full text
jonaswinkler3dfe5c92628d
diff --git a/src/documents/views.py b/src/documents/views.pyindex f61933e16..71b01cdd6 100755--- a/src/documents/views.py+++ b/src/documents/views.py@@ -17,6 +17,7 @@ from django_filters.rest_framework import DjangoFilterBackendfrom django_q.tasks import async_taskfrom rest_framework import parsersfrom rest_framework.decorators import action+from rest_framework.exceptions import NotFoundfrom rest_framework.filters import OrderingFilter, SearchFilterfrom rest_framework.generics import GenericAPIViewfrom rest_framework.mixins import (@@ -382,6 +383,8 @@ class UnifiedSearchViewSet(DocumentViewSet):with index.open_index_searcher() as s:self.searcher = sreturn super(UnifiedSearchViewSet, self).list(request)+ except NotFound:+ raiseexcept Exception as e:return HttpResponseBadRequest(str(e))else: