feat(settings): add setting to set number of suggested dates

This commit is contained in:
Matthias Eck
2022-08-06 13:02:08 +02:00
parent 96fbb549ce
commit b5eab663eb
3 changed files with 9 additions and 1 deletions

View File

@@ -588,6 +588,11 @@ POST_CONSUME_SCRIPT = os.getenv("PAPERLESS_POST_CONSUME_SCRIPT")
DATE_ORDER = os.getenv("PAPERLESS_DATE_ORDER", "DMY")
FILENAME_DATE_ORDER = os.getenv("PAPERLESS_FILENAME_DATE_ORDER")
# Number of dates used as suggestions in the frontend
# The number counter from top to bottom.
# Duplicates will be removed, which will result in less shown suggestion dates.
NUMBER_OF_SUGGESTED_DATES = __get_int("PAPERLESS_NUMBER_OF_SUGGESTED_DATES", 0)
# Transformations applied before filename parsing
FILENAME_PARSE_TRANSFORMS = []
for t in json.loads(os.getenv("PAPERLESS_FILENAME_PARSE_TRANSFORMS", "[]")):