zip download and fabfile fixes
[wolnelektury.git] / apps / catalogue / models.py
index a0f737f..d902996 100644 (file)
@@ -615,6 +615,7 @@ class Book(models.Model):
                     for b in books]
         result = create_zip.delay(paths,
                     getattr(settings, "ALL_%s_ZIP" % format_.upper()))
+        return result.wait()
 
     def zip_audiobooks(self):
         bm = BookMedia.objects.filter(book=self, type='mp3')