mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 07:15:07 +01:00
Fix: include trashed docs in existing doc check (#7229)
This commit is contained in:
parent
df153be30e
commit
73d33ff25a
1 changed files with 1 additions and 1 deletions
|
|
@ -317,7 +317,7 @@ class ConsumerPlugin(
|
|||
"""
|
||||
with open(self.input_doc.original_file, "rb") as f:
|
||||
checksum = hashlib.md5(f.read()).hexdigest()
|
||||
existing_doc = Document.objects.filter(
|
||||
existing_doc = Document.global_objects.filter(
|
||||
Q(checksum=checksum) | Q(archive_checksum=checksum),
|
||||
)
|
||||
if existing_doc.exists():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue