From 7bf7f12fe0175bc3bd3e87580ec062d010420001 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 13 May 2011 14:13:48 +0200 Subject: [PATCH 1/1] #1483: txt generation only for non-empty books --- apps/catalogue/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.20.1