mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Update bulk_edit.py
This commit is contained in:
parent
827a68259b
commit
add4388c73
@ -336,7 +336,9 @@ def merge(
|
|||||||
try:
|
try:
|
||||||
doc_path = (
|
doc_path = (
|
||||||
doc.archive_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
|
else doc.source_path
|
||||||
)
|
)
|
||||||
with pikepdf.open(str(doc_path)) as pdf:
|
with pikepdf.open(str(doc_path)) as pdf:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user