mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-07 00:27:12 +00:00
added a setting: delete duplicate documents
This commit is contained in:
1 parent
54f04650d1
commit
83f82f3caf
3 files changed
+8
No files matched your search
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user