From 8247251518f92fcc589fe65cce635b16cd39756c Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 24 Jul 2013 19:42:21 +0200 Subject: fixed a really strange bug... to investigate... --- source/pyAggr3g470r.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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('

The database has not been indexed.

') 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") -- cgit