aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-03-04 10:12:30 +0100
committercedricbonhomme <devnull@localhost>2012-03-04 10:12:30 +0100
commitb79cbe89f9daa1ce8d55623935aa2f76aecbf918 (patch)
tree72ab6c1bb77f6506ecf7944e9cb96a350fb1bca8 /pyAggr3g470r.py
parentMinor stupid bub fix... (diff)
downloadnewspipe-b79cbe89f9daa1ce8d55623935aa2f76aecbf918.tar.gz
newspipe-b79cbe89f9daa1ce8d55623935aa2f76aecbf918.tar.bz2
newspipe-b79cbe89f9daa1ce8d55623935aa2f76aecbf918.zip
All articles from a feed page is now working.
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-xpyAggr3g470r.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index 21818515..c2c58caf 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -703,7 +703,8 @@ class Root:
This page displays all articles of a feed.
"""
try:
- feed = self.mongo.get_articles_from_collection(feed_id)
+ feed = self.mongo.get_collection(feed_id)
+ articles = self.mongo.get_articles_from_collection(feed_id)
except KeyError:
return self.error_page("This feed do not exists.")
html = htmlheader()
@@ -714,9 +715,9 @@ class Root:
html += "<hr />\n"
html += self.create_list_of_feeds()
html += """</div> <div class="left inner">"""
- html += """<h1>Articles of the feed <i>%s</i></h1><br />""" % (feed_id,)
+ html += """<h1>Articles of the feed <i>%s</i></h1><br />""" % (feed["feed_title"],)
- for article in feed:
+ for article in articles:
if article["article_readed"] == False:
# not readed articles are in bold
@@ -730,7 +731,7 @@ class Root:
like = ""
# descrition for the CSS ToolTips
- article_content = utils.clear_string(article["content"])
+ article_content = utils.clear_string(article["article_content"])
if article_content:
description = " ".join(article_content[:500].split(' ')[:-1])
else:
bgstack15