X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/849f19a3c55d9846b7b671ce516b0934b62777b5..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.' %