diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-07-24 19:42:21 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-07-24 19:42:21 +0200 |
commit | 8247251518f92fcc589fe65cce635b16cd39756c (patch) | |
tree | af7b7a8430d8bae5156fb25163fd3058b8e208ef /source | |
parent | Bugfix when checking if an article is already in the database. (diff) | |
download | newspipe-8247251518f92fcc589fe65cce635b16cd39756c.tar.gz newspipe-8247251518f92fcc589fe65cce635b16cd39756c.tar.bz2 newspipe-8247251518f92fcc589fe65cce635b16cd39756c.zip |
fixed a really strange bug... to investigate...
Diffstat (limited to 'source')
-rwxr-xr-x | source/pyAggr3g470r.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index f6b40fb6..cf0af11e 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -177,7 +177,8 @@ class pyAggr3g470r(object): return self.error('<p>The database has not been <a href="/index_base">indexed</a>.</p>') for result in results: article = self.mongo.get_articles(result[0], result[1]) - search_result[result[0]].append(article) + if article != []: + search_result[result[0]].append(article) sorted_search_result = {feed_id: sorted(articles, key=lambda t: t['article_date'], reverse=True) \ for feed_id, articles in search_result.items()} tmpl = lookup.get_template("search.html") |