mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-14 01:21:14 -06:00
Update bulk_edit.py
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user