mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
Restored tagging functionality
This commit is contained in:
parent
7257cece30
commit
b347e3347d
1 changed files with 6 additions and 0 deletions
6
src/documents/consumer.py
Normal file → Executable file
6
src/documents/consumer.py
Normal file → Executable file
|
|
@ -221,6 +221,12 @@ class Consumer:
|
||||||
storage_type=self.storage_type
|
storage_type=self.storage_type
|
||||||
)
|
)
|
||||||
|
|
||||||
|
relevant_tags = set(file_info.tags)
|
||||||
|
if relevant_tags:
|
||||||
|
tag_names = ", ".join([t.slug for t in relevant_tags])
|
||||||
|
self.log("debug", "Tagging with {}".format(tag_names))
|
||||||
|
document.tags.add(*relevant_tags)
|
||||||
|
|
||||||
self._write(document, doc, document.source_path)
|
self._write(document, doc, document.source_path)
|
||||||
self._write(document, thumbnail, document.thumbnail_path)
|
self._write(document, thumbnail, document.thumbnail_path)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue