Merge pull request #1670 from paperless-ngx/fix/issue-1667

Bugfix: Allow PAPERLESS_OCR_CLEAN=none
This commit is contained in:
shamoon 2022-09-27 09:29:49 -07:00 committed by GitHub
commit 7d4b2c2413
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,7 +130,7 @@ def settings_values_check(app_configs, **kwargs):
if settings.OCR_MODE not in {"force", "skip", "redo", "skip_noarchive"}: if settings.OCR_MODE not in {"force", "skip", "redo", "skip_noarchive"}:
msgs.append(Error(f'OCR output mode "{settings.OCR_MODE}" is not valid')) 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", "none"}:
msgs.append(Error(f'OCR clean mode "{settings.OCR_CLEAN}" is not valid')) msgs.append(Error(f'OCR clean mode "{settings.OCR_CLEAN}" is not valid'))
return msgs return msgs