celery supervisord conf
[wolnelektury.git] / apps / catalogue / management / commands / importbooks.py
index f51214d..62ead53 100644 (file)
@@ -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.' %