mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
added a setting: delete duplicate documents
This commit is contained in:
parent
54f04650d1
commit
83f82f3caf
3 changed files with 8 additions and 0 deletions
|
|
@ -84,6 +84,8 @@ class Consumer:
|
|||
"warning",
|
||||
"Skipping {} as it appears to be a duplicate".format(doc)
|
||||
)
|
||||
if settings.CONSUMER_DELETE_DUPLICATES:
|
||||
self._cleanup_doc(doc)
|
||||
return False
|
||||
|
||||
self.log("info", "Consuming {}".format(doc))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue