X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b1c8f7e689f4b1060f9f9abe26552357b19881b6..cc49ae50f55e14465c700350157478f79fd13d33:/apps/catalogue/management/commands/importbooks.py diff --git a/apps/catalogue/management/commands/importbooks.py b/apps/catalogue/management/commands/importbooks.py index f51214d72..62ead5373 100644 --- a/apps/catalogue/management/commands/importbooks.py +++ b/apps/catalogue/management/commands/importbooks.py @@ -101,6 +101,9 @@ class Command(BaseCommand): print "Importing %s.txt" % file_base book.save() + + # clean the generated zip packages. Is this the right place for this? + book.clean_zip_files() except Book.AlreadyExists, msg: print self.style.ERROR('%s: Book already imported. Skipping. To overwrite use --force.' %