diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-19 08:40:40 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-19 08:40:40 +0100 |
commit | 291b3a551cc811f1a1e391861aff6d4880121f2b (patch) | |
tree | 847a2e6939af22434a396072b18eeff8260ec2fb | |
parent | Typo: removed duplicate ending <a> tag. (diff) | |
download | newspipe-291b3a551cc811f1a1e391861aff6d4880121f2b.tar.gz newspipe-291b3a551cc811f1a1e391861aff6d4880121f2b.tar.bz2 newspipe-291b3a551cc811f1a1e391861aff6d4880121f2b.zip |
Display the number of articles per feeds for the Webzine database export (HTML).
-rw-r--r-- | source/export.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/export.py b/source/export.py index 3d0cf248..9b0b545e 100644 --- a/source/export.py +++ b/source/export.py @@ -75,6 +75,7 @@ def export_html(mongo_db): posts = htmlheader posts += """<h1>Articles of the feed %s</h1>\n""" % (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") @@ -86,7 +87,7 @@ def export_html(mongo_db): a_post = htmlheader a_post += '\n<div style="width: 50%; overflow:hidden; text-align: justify; margin:0 auto">\n' - a_post += """<h1><a href="%s">%s</a></h1><br />""" % \ + a_post += """<h1><a href="%s">%s</a></h1>\n<br />""" % \ (article["article_link"], article["article_title"]) a_post += article["article_content"] a_post += "</div>\n<hr />\n" |