From 860030540c8df782f3e550a911a9ba6d7d51de71 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 24 Jun 2013 21:35:56 +0200 Subject: Integration of the new search module. --- source/static/templates/search.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/static') diff --git a/source/static/templates/search.html b/source/static/templates/search.html index da766ee9..9a635935 100644 --- a/source/static/templates/search.html +++ b/source/static/templates/search.html @@ -5,7 +5,7 @@ import utils %>
%if len(search_result) != 0: -

Articles containing the string ${query} (${sum([articles.count() for articles in search_result.values()])} results)

+

Articles containing the string ${query} (${sum([len(articles) for articles in search_result.values()])} results)

%else:

String ${query} not found.

%endif @@ -18,7 +18,6 @@ import utils <% new_feed_section = True feed = mongo.get_feed(feed_id) - print(search_result[feed["feed_id"]].count()) for article in search_result[feed["feed_id"]]: if new_feed_section is True: new_feed_section = False -- cgit