mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
inbox tags, archive tags, archive serial number for documents
This commit is contained in:
2
src/documents/management/commands/document_correspondents.py
Normal file → Executable file
2
src/documents/management/commands/document_correspondents.py
Normal file → Executable file
@@ -41,7 +41,7 @@ class Command(Renderable, BaseCommand):
|
||||
|
||||
self.verbosity = options["verbosity"]
|
||||
|
||||
for document in Document.objects.filter(correspondent__isnull=True):
|
||||
for document in Document.objects.filter(correspondent__isnull=True).exclude(tags__is_archived_tag=True):
|
||||
|
||||
potential_correspondents = list(
|
||||
Correspondent.match_all(document.content))
|
||||
|
2
src/documents/management/commands/document_retagger.py
Normal file → Executable file
2
src/documents/management/commands/document_retagger.py
Normal file → Executable file
@@ -22,7 +22,7 @@ class Command(Renderable, BaseCommand):
|
||||
|
||||
self.verbosity = options["verbosity"]
|
||||
|
||||
for document in Document.objects.all():
|
||||
for document in Document.objects.all().exclude(tags__is_archived_tag=True):
|
||||
|
||||
tags = Tag.objects.exclude(
|
||||
pk__in=document.tags.values_list("pk", flat=True))
|
||||
|
Reference in New Issue
Block a user