aboutsummaryrefslogtreecommitdiff
path: root/source/pyAggr3g470r.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-02-02 21:04:02 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-02-02 21:04:02 +0100
commitde9df587edfede9d54722e6bbadf7b63af26fd43 (patch)
treeb9ebb81082ffbf5d49e370e21da51da42db7cdb3 /source/pyAggr3g470r.py
parentAdded link to the article page (in the /languages page). (diff)
downloadnewspipe-de9df587edfede9d54722e6bbadf7b63af26fd43.tar.gz
newspipe-de9df587edfede9d54722e6bbadf7b63af26fd43.tar.bz2
newspipe-de9df587edfede9d54722e6bbadf7b63af26fd43.zip
The id of the feed is used as key of the dictionary.
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-xsource/pyAggr3g470r.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index 62e117b7..d61d4e73 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -468,11 +468,11 @@ class pyAggr3g470r(object):
language = guess_language(utils.clear_string(article["article_content"]))
if language not in result.keys():
result[language] = {}
- if feed["feed_title"] not in result[language].keys():
- result[language][feed["feed_title"]] = []
- result[language][feed["feed_title"]].append(article)
+ if feed["feed_id"] not in result[language].keys():
+ result[language][feed["feed_id"]] = []
+ result[language][feed["feed_id"]].append(article)
tmpl = lookup.get_template("languages.html")
- return tmpl.render(articles_sorted_by_languages=result)
+ return tmpl.render(articles_sorted_by_languages=result, mongo=self.mongo)
languages.exposed = True
bgstack15