A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fix: include ignore for config logos in sanity checker (#10473)
shamoon8505fa3e54b2
diff --git a/src/documents/sanity_checker.py b/src/documents/sanity_checker.pyindex 4f7abde06..76c35073c 100644--- a/src/documents/sanity_checker.py+++ b/src/documents/sanity_checker.py@@ -12,6 +12,7 @@ from tqdm import tqdmfrom documents.models import Documentfrom documents.models import PaperlessTask+from paperless.config import GeneralConfigclass SanityCheckMessages:@@ -82,8 +83,10 @@ def check_sanity(*, progress=False, scheduled=True) -> SanityCheckMessages:if lockfile in present_files:present_files.remove(lockfile)- if settings.APP_LOGO:- logo_file = Path(settings.MEDIA_ROOT / settings.APP_LOGO).resolve()+ general_config = GeneralConfig()+ app_logo = general_config.app_logo or settings.APP_LOGO+ if app_logo:+ logo_file = Path(settings.MEDIA_ROOT / Path(app_logo.lstrip("/"))).resolve()if logo_file in present_files:present_files.remove(logo_file)