From d3c13f6c932d6e978fc6af71fb859dc83fdac7dc Mon Sep 17 00:00:00 2001 From: Jonas Winkler Date: Wed, 25 Nov 2020 19:30:11 +0100 Subject: [PATCH] removed unused settings. --- paperless.conf.example | 2 -- src/paperless/checks.py | 1 - src/paperless/settings.py | 3 +-- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/paperless.conf.example b/paperless.conf.example index 34e560507..685e09fab 100644 --- a/paperless.conf.example +++ b/paperless.conf.example @@ -44,7 +44,6 @@ #PAPERLESS_CONSUMER_DELETE_DUPLICATES=false #PAPERLESS_CONVERT_MEMORY_LIMIT=0 #PAPERLESS_CONVERT_TMPDIR=/var/tmp/paperless -#PAPERLESS_CONVERT_DENSITY=300 #PAPERLESS_OPTIMIZE_THUMBNAILS=true #PAPERLESS_POST_CONSUME_SCRIPT=/path/to/an/arbitrary/script.sh #PAPERLESS_FILENAME_DATE_ORDER=YMD @@ -54,5 +53,4 @@ #PAPERLESS_CONVERT_BINARY=/usr/bin/convert #PAPERLESS_GS_BINARY=/usr/bin/gs -#PAPERLESS_UNPAPER_BINARY=/usr/bin/unpaper #PAPERLESS_OPTIPNG_BINARY=/usr/bin/optipng diff --git a/src/paperless/checks.py b/src/paperless/checks.py index b39822128..819582ffc 100644 --- a/src/paperless/checks.py +++ b/src/paperless/checks.py @@ -57,7 +57,6 @@ def binaries_check(app_configs, **kwargs): binaries = ( settings.CONVERT_BINARY, settings.OPTIPNG_BINARY, - settings.UNPAPER_BINARY, "tesseract" ) diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 5cede45c4..c49271731 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -353,11 +353,10 @@ GNUPG_HOME = os.getenv("HOME", "/tmp") CONVERT_BINARY = os.getenv("PAPERLESS_CONVERT_BINARY", "convert") CONVERT_TMPDIR = os.getenv("PAPERLESS_CONVERT_TMPDIR") CONVERT_MEMORY_LIMIT = os.getenv("PAPERLESS_CONVERT_MEMORY_LIMIT") -CONVERT_DENSITY = int(os.getenv("PAPERLESS_CONVERT_DENSITY", 300)) GS_BINARY = os.getenv("PAPERLESS_GS_BINARY", "gs") + OPTIPNG_BINARY = os.getenv("PAPERLESS_OPTIPNG_BINARY", "optipng") -UNPAPER_BINARY = os.getenv("PAPERLESS_UNPAPER_BINARY", "unpaper") # Pre-2.x versions of Paperless stored your documents locally with GPG