From eaf5b6ca5cdbc0f9e684375c3cef5b9f649aa658 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 1 Nov 2016 09:52:39 +0100 Subject: [PATCH] [mod] don't load feed template if we don't uses it --- prosopopee/prosopopee.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index 642e004..6db8de4 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -452,12 +452,12 @@ def main(): theme = settings["settings"].get("theme", "exposure") templates = get_gallery_templates(theme) templates.add_extension('jinja2.ext.with_') - feed_template = templates.get_template("feed.xml") for gallery in galleries_dirs: front_page_galleries_cover.append(process_directory(gallery, settings, templates)) if settings["rss"]: + feed_template = templates.get_template("feed.xml") feed_xml = open(os.path.join("build", "feed.xml"), "w") feed_xml.write(feed_template.render(