fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zip package for epub/pdf/audiobooks
[wolnelektury.git]
/
apps
/
catalogue
/
management
/
commands
/
importbooks.py
diff --git
a/apps/catalogue/management/commands/importbooks.py
b/apps/catalogue/management/commands/importbooks.py
index
f51214d
..
62ead53
100644
(file)
--- 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()
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.' %
except Book.AlreadyExists, msg:
print self.style.ERROR('%s: Book already imported. Skipping. To overwrite use --force.' %