mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Update bulk_edit.py
This commit is contained in:
parent
827a68259b
commit
add4388c73
@ -336,7 +336,9 @@ def merge(
|
||||
try:
|
||||
doc_path = (
|
||||
doc.archive_path
|
||||
if archive_fallback and doc.mime_type != "application/pdf"
|
||||
if archive_fallback
|
||||
and doc.mime_type != "application/pdf"
|
||||
and doc.has_archive_version
|
||||
else doc.source_path
|
||||
)
|
||||
with pikepdf.open(str(doc_path)) as pdf:
|
||||
|
Loading…
x
Reference in New Issue
Block a user