Added setting to enable webdav (default: disabled), cleaned up the code somewhat.

This commit is contained in:
Jonas Winkler
2018-07-11 14:59:47 +02:00
parent 38bb1f9672
commit f2c32d840e
4 changed files with 54 additions and 46 deletions

View File

@@ -280,3 +280,5 @@ FY_END = os.getenv("PAPERLESS_FINANCIAL_YEAR_END")
# Specify the default date order (for autodetected dates)
DATE_ORDER = os.getenv("PAPERLESS_DATE_ORDER", "DMY")
ENABLE_WEBDAV = bool(os.getenv("PAPERLESS_ENABLE_WEBDAV", "NO").lower() in ("yes", "y", "1", "t", "true"))