A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
flake8
florian on nixos (Florian Brandes)488fe28ad328
diff --git a/src/documents/tasks.py b/src/documents/tasks.pyindex 4bb3804d2..23c81e051 100644--- a/src/documents/tasks.py+++ b/src/documents/tasks.py@@ -80,7 +80,7 @@ def barcode_reader(image) -> list:detected_barcodes = pyzbar.decode(image)if not detected_barcodes:- logger.debug(f"No barcode detected")+ logger.debug("No barcode detected")else:# Traverse through all the detected barcodes in imagefor barcode in detected_barcodes:@@ -124,7 +124,7 @@ def separate_pages(filepath: str, pages_to_split_on: list) -> list:# TODO: Get the directory of the file and save the other files there# TODO: Return list of new paths of the new filesif len(pages_to_split_on) <= 0:- logger.warning(f"No pages to split on!")+ logger.warning("No pages to split on!")else:# go from the first page to the first separator pagedst = Pdf.new()