mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 09:07:18 +01:00
Change: Use fnmatch for workflow path matching (#5250)
This commit is contained in:
parent
355a434a07
commit
d623af9c41
2 changed files with 51 additions and 1 deletions
|
|
@ -296,7 +296,10 @@ def consumable_document_matches_workflow(
|
|||
if (
|
||||
trigger.filter_path is not None
|
||||
and len(trigger.filter_path) > 0
|
||||
and not document.original_file.match(trigger.filter_path)
|
||||
and not fnmatch(
|
||||
document.original_file,
|
||||
trigger.filter_path,
|
||||
)
|
||||
):
|
||||
reason = (
|
||||
f"Document path {document.original_file}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue