mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-30 19:45:44 +00:00
Change: Use fnmatch for workflow path matching (#5250)
This commit is contained in:
1 parent
355a434a07
commit
d623af9c41
2 files changed
+51
-1
No files matched your search
@@ -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}"
|
||||
|
||||
Reference in new issue
Block a user