A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fix: respect deskew / rotate pages from AppConfig if set (#7501)
shamoon674b4a839cc7
diff --git a/src/paperless/config.py b/src/paperless/config.pyindex 4195a16db..00afb2a13 100644--- a/src/paperless/config.py+++ b/src/paperless/config.py@@ -70,8 +70,14 @@ class OcrConfig(OutputTypeConfig):)self.image_dpi = app_config.image_dpi or settings.OCR_IMAGE_DPIself.clean = app_config.unpaper_clean or settings.OCR_CLEAN- self.deskew = app_config.deskew or settings.OCR_DESKEW- self.rotate = app_config.rotate_pages or settings.OCR_ROTATE_PAGES+ self.deskew = (+ app_config.deskew if app_config.deskew is not None else settings.OCR_DESKEW+ )+ self.rotate = (+ app_config.rotate_pages+ if app_config.rotate_pages is not None+ else settings.OCR_ROTATE_PAGES+ )self.rotate_threshold = (app_config.rotate_pages_threshold or settings.OCR_ROTATE_PAGES_THRESHOLD)