remove lots of unused code

This commit is contained in:
jonaswinkler
2021-02-04 23:40:53 +01:00
parent 138f38d1f3
commit 0d3ab3aaf7
10 changed files with 8 additions and 66 deletions

View File

@@ -7,7 +7,6 @@ from django import db
from django.core.management.base import BaseCommand
from documents.models import Document
from ...mixins import Renderable
from ...parsers import get_parser_class_for_mime_type
@@ -30,16 +29,12 @@ def _process_document(doc_in):
parser.cleanup()
class Command(Renderable, BaseCommand):
class Command(BaseCommand):
help = """
This will regenerate the thumbnails for all documents.
""".replace(" ", "")
def __init__(self, *args, **kwargs):
self.verbosity = 0
BaseCommand.__init__(self, *args, **kwargs)
def add_arguments(self, parser):
parser.add_argument(
"-d", "--document",
@@ -51,9 +46,6 @@ class Command(Renderable, BaseCommand):
)
def handle(self, *args, **options):
self.verbosity = options["verbosity"]
logging.getLogger().handlers[0].level = logging.ERROR
if options['document']: