mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-15 10:26:42 +00:00
Fix: workflow password removal didn't handle lists from the DB (#12716)
This commit is contained in:
1 parent
76b2b6ad36
commit
e2ad14f9ca
2 files changed
+4
-9
No files matched your search
@@ -1,5 +1,4 @@
|
||||
import logging
|
||||
import re
|
||||
import uuid
|
||||
from pathlib import Path
|
||||
|
||||
@@ -290,11 +289,7 @@ def execute_password_removal_action(
|
||||
)
|
||||
return
|
||||
|
||||
passwords = [
|
||||
password.strip()
|
||||
for password in re.split(r"[,\n]", passwords)
|
||||
if password.strip()
|
||||
]
|
||||
passwords = [p.strip() for p in passwords if p.strip()]
|
||||
|
||||
if isinstance(document, ConsumableDocument):
|
||||
# hook the consumption-finished signal to attempt password removal later
|
||||
|
||||
Reference in new issue
Block a user