X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e6465832b051b2f2ebc156976b53801989a135ff..7fc1680165d8334dcac541883b03776082b80ad5:/catalogue/management/commands/importbooks.py diff --git a/catalogue/management/commands/importbooks.py b/catalogue/management/commands/importbooks.py index fbc653f4b..22dd237f7 100644 --- a/catalogue/management/commands/importbooks.py +++ b/catalogue/management/commands/importbooks.py @@ -3,10 +3,8 @@ import os from django.core.management.base import BaseCommand from django.core.management.color import color_style from optparse import make_option -from slughifi import slughifi -import dcparser -from catalogue.models import Book, Tag +from catalogue.models import Book class Command(BaseCommand): @@ -40,7 +38,7 @@ class Command(BaseCommand): if not os.path.splitext(file_name)[1] == '.xml': print self.style.NOTICE("Skipping '%s': not an XML file." % file_path) continue - if verbosity > 1: + if verbosity > 0: print "Parsing '%s'" % file_path Book.from_xml_file(file_path)