From: Radek Czajka Date: Fri, 13 May 2011 12:13:48 +0000 (+0200) Subject: #1483: txt generation only for non-empty books X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/7bf7f12fe0175bc3bd3e87580ec062d010420001?ds=inline;hp=-c #1483: txt generation only for non-empty books --- 7bf7f12fe0175bc3bd3e87580ec062d010420001 diff --git a/apps/catalogue/models.py b/apps/catalogue/models.py index 2b6a2cc2f..2202cc103 100644 --- a/apps/catalogue/models.py +++ b/apps/catalogue/models.py @@ -621,8 +621,8 @@ class Book(models.Model): new_fragment.save() new_fragment.tags = set(book_tags + themes + [book_tag] + ancestor_tags) - if not settings.NO_BUILD_TXT and build_txt: - book.build_txt() + if not settings.NO_BUILD_TXT and build_txt: + book.build_txt() if not settings.NO_BUILD_EPUB and build_epub: book.root_ancestor.build_epub()