mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
Address review comments by @danielquinn
This commit is contained in:
parent
f0320fb72d
commit
3b88d6722a
2 changed files with 6 additions and 6 deletions
|
|
@ -321,12 +321,8 @@ FILENAME_DATE_ORDER = os.getenv("PAPERLESS_FILENAME_DATE_ORDER")
|
|||
|
||||
# Transformations applied before filename parsing
|
||||
FILENAME_PARSE_TRANSFORMS = []
|
||||
_filename_parse_transforms = os.getenv("PAPERLESS_FILENAME_PARSE_TRANSFORMS")
|
||||
if _filename_parse_transforms:
|
||||
FILENAME_PARSE_TRANSFORMS = [(
|
||||
re.compile(t["pattern"]), t["repl"])
|
||||
for t in json.loads(_filename_parse_transforms)
|
||||
]
|
||||
for t in json.loads(os.getenv("PAPERLESS_FILENAME_PARSE_TRANSFORMS", "[]")):
|
||||
FILENAME_PARSE_TRANSFORMS.append((re.compile(t["pattern"]), t["repl"]))
|
||||
|
||||
# Specify for how many years a correspondent is considered recent. Recent
|
||||
# correspondents will be shown in a separate "Recent correspondents" filter as
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue