Add a setting to disable creating an archive file

This commit is contained in:
Brandon Rothweiler
2023-02-22 15:27:17 -05:00
parent 782db3f324
commit 93a6391f96
4 changed files with 65 additions and 5 deletions

View File

@@ -127,7 +127,13 @@ 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", "skip_noarchive"}:
if settings.OCR_MODE not in {
"force",
"skip",
"redo",
"skip_noarchive",
"skip_neverarchive",
}:
msgs.append(Error(f'OCR output mode "{settings.OCR_MODE}" is not valid'))
if settings.OCR_CLEAN not in {"clean", "clean-final", "none"}: