diff --git a/src/documents/apps.py b/src/documents/apps.py index 50b6ac2ce4..deb8a238d4 100644 --- a/src/documents/apps.py +++ b/src/documents/apps.py @@ -29,7 +29,6 @@ class DocumentsConfig(AppConfig): document_consumption_finished.connect(run_workflows_added) document_consumption_finished.connect(add_to_index) document_consumption_finished.connect(add_or_update_document_in_llm_index) - document_updated.connect(run_workflows_updated) document_updated.connect(send_websocket_document_updated) document_updated.connect(add_or_update_document_in_llm_index) diff --git a/src/documents/tests/test_zone_ocr.py b/src/documents/tests/test_zone_ocr.py index 9a5bdfa0dc..cb88133ab8 100644 --- a/src/documents/tests/test_zone_ocr.py +++ b/src/documents/tests/test_zone_ocr.py @@ -3755,7 +3755,7 @@ class TestRenderPages: - Only the in range pages are rendered, in order, as 1-based pages at 300 DPI with a 60 second timeout """ - pages = _render_pages(pdf, {-1, 0, 2, 3}, tmp_path, 3, is_image=False) + pages = _render_pages(pdf, {0, 2, 3}, tmp_path, 3, is_image=False) assert list(pages) == [0, 2] assert mock_rasterize.call_count == 2 diff --git a/src/documents/zone_ocr.py b/src/documents/zone_ocr.py index dcf8fac41d..e437e68da0 100644 --- a/src/documents/zone_ocr.py +++ b/src/documents/zone_ocr.py @@ -753,7 +753,7 @@ def _render_pages( return result for actual_page in sorted(pages): - if actual_page < 0 or (page_count and actual_page >= page_count): + if page_count and actual_page >= page_count: continue rendered = tmp_dir / f"page_{actual_page}.png"