mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-05 11:39:29 -05:00

Cleans up some command help text and adds more control over process count for command with a Pool
18 lines
563 B
Python
18 lines
563 B
Python
from django.core.management.base import BaseCommand
|
|
|
|
from documents.management.commands.mixins import ProgressBarMixin
|
|
from documents.sanity_checker import check_sanity
|
|
|
|
|
|
class Command(ProgressBarMixin, BaseCommand):
|
|
help = "This command checks your document archive for issues."
|
|
|
|
def add_arguments(self, parser):
|
|
self.add_argument_progress_bar_mixin(parser)
|
|
|
|
def handle(self, *args, **options):
|
|
self.handle_progress_bar_mixin(**options)
|
|
messages = check_sanity(progress=self.use_progress_bar)
|
|
|
|
messages.log_messages()
|