mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-24 22:39:02 -06:00
Runs the pre-commit hooks over all the Python files
This commit is contained in:
@@ -3,7 +3,6 @@ import logging
|
||||
import tqdm
|
||||
from django.core.management.base import BaseCommand
|
||||
from django.db.models.signals import post_save
|
||||
|
||||
from documents.models import Document
|
||||
|
||||
|
||||
@@ -12,7 +11,8 @@ class Command(BaseCommand):
|
||||
help = """
|
||||
This will rename all documents to match the latest filename format.
|
||||
""".replace(
|
||||
" ", ""
|
||||
" ",
|
||||
"",
|
||||
)
|
||||
|
||||
def add_arguments(self, parser):
|
||||
@@ -28,6 +28,7 @@ class Command(BaseCommand):
|
||||
logging.getLogger().handlers[0].level = logging.ERROR
|
||||
|
||||
for document in tqdm.tqdm(
|
||||
Document.objects.all(), disable=options["no_progress_bar"]
|
||||
Document.objects.all(),
|
||||
disable=options["no_progress_bar"],
|
||||
):
|
||||
post_save.send(Document, instance=document)
|
||||
|
||||
Reference in New Issue
Block a user