From 8967f07c8da76a06f4fe043ec9dd9ee621ad25d1 Mon Sep 17 00:00:00 2001 From: Trenton H Date: Mon, 26 Sep 2022 10:42:54 -0700 Subject: [PATCH] Fixes a missing option for OCR mode and incorrect clean mode --- src/paperless/checks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/paperless/checks.py b/src/paperless/checks.py index e592a5bf2..e5ab442ab 100644 --- a/src/paperless/checks.py +++ b/src/paperless/checks.py @@ -127,10 +127,10 @@ def settings_values_check(app_configs, **kwargs): Error(f'OCR output type "{settings.OCR_OUTPUT_TYPE}" is not valid'), ) - if settings.OCR_MODE not in {"force", "skip", "redo_ocr"}: + if settings.OCR_MODE not in {"force", "skip", "redo", "skip_noarchive"}: msgs.append(Error(f'OCR output mode "{settings.OCR_MODE}" is not valid')) - if settings.OCR_CLEAN not in {"clean", "clean_final"}: + if settings.OCR_CLEAN not in {"clean", "clean-final"}: msgs.append(Error(f'OCR clean mode "{settings.OCR_CLEAN}" is not valid')) return msgs