From e460de29f5be60d9084c25a41804904416230221 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 19 Jan 2013 08:48:17 +0100 Subject: Added link to the original site (for the Webzine). --- source/export.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/export.py b/source/export.py index 9b0b545e..0bd9d45d 100644 --- a/source/export.py +++ b/source/export.py @@ -74,8 +74,9 @@ def export_html(mongo_db): (feed["feed_id"], feed["feed_title"]) posts = htmlheader - posts += """

Articles of the feed %s

\n""" % (feed["feed_title"],) + posts += """

Articles of the feed %s

\n""" % (feed["site_link"], feed["feed_title"]) posts += """

%s articles.

\n""" % (format(mongo_db.nb_articles(feed["feed_id"]), ",d"),) + for article in mongo_db.get_articles(feed_id=feed["feed_id"]): post_file_name = os.path.normpath(feed_folder + "/" + article["article_id"] + ".html") -- cgit