Default PAPERLESS_NUMBER_OF_SUGGESTED_DATES to 3

This commit is contained in:
Michael Shamoon
2022-08-25 08:03:38 -07:00
parent b9df858775
commit c487a0bed0
2 changed files with 12 additions and 14 deletions

View File

@@ -588,10 +588,9 @@ 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)
# Maximum number of dates taken from document start to end to show as suggestions for
# `created` date in the frontend. Duplicates are removed, which can result in fewer dates shown.
NUMBER_OF_SUGGESTED_DATES = __get_int("PAPERLESS_NUMBER_OF_SUGGESTED_DATES", 3)
# Transformations applied before filename parsing
FILENAME_PARSE_TRANSFORMS = []