mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-19 01:21:19 +00:00
16 lines
360 B
Python
16 lines
360 B
Python
from django.core.management.base import BaseCommand
|
|
from documents.sanity_checker import check_sanity
|
|
|
|
|
|
class Command(BaseCommand):
|
|
|
|
help = """
|
|
This command checks your document archive for issues.
|
|
""".replace(" ", "")
|
|
|
|
def handle(self, *args, **options):
|
|
|
|
messages = check_sanity(progress=True)
|
|
|
|
messages.log_messages()
|