aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-19 08:48:17 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-19 08:48:17 +0100
commite460de29f5be60d9084c25a41804904416230221 (patch)
tree654764444908e714f2dab93edb0d6c1a575e0b27 /source
parentDisplay the number of articles per feeds for the Webzine database export (HTML). (diff)
downloadnewspipe-e460de29f5be60d9084c25a41804904416230221.tar.gz
newspipe-e460de29f5be60d9084c25a41804904416230221.tar.bz2
newspipe-e460de29f5be60d9084c25a41804904416230221.zip
Added link to the original site (for the Webzine).
Diffstat (limited to 'source')
-rw-r--r--source/export.py3
1 files changed, 2 insertions, 1 deletions
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 += """<h1>Articles of the feed %s</h1>\n""" % (feed["feed_title"],)
+ posts += """<h1>Articles of the feed <a href="%s">%s</a></h1>\n""" % (feed["site_link"], feed["feed_title"])
posts += """<p>%s articles.</p>\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")
bgstack15