aboutsummaryrefslogtreecommitdiff
path: root/source/static/templates/search.html
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-06-24 21:35:56 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-06-24 21:35:56 +0200
commit860030540c8df782f3e550a911a9ba6d7d51de71 (patch)
treeab78e2df551ebf4f1a68dee3dc897abe52a8af3b /source/static/templates/search.html
parentAdded index_base view in order to launch the indexing. (diff)
downloadnewspipe-860030540c8df782f3e550a911a9ba6d7d51de71.tar.gz
newspipe-860030540c8df782f3e550a911a9ba6d7d51de71.tar.bz2
newspipe-860030540c8df782f3e550a911a9ba6d7d51de71.zip
Integration of the new search module.
Diffstat (limited to 'source/static/templates/search.html')
-rw-r--r--source/static/templates/search.html3
1 files changed, 1 insertions, 2 deletions
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
%>
<div class="left inner">
%if len(search_result) != 0:
- <h1>Articles containing the string <i>${query}</i> (${sum([articles.count() for articles in search_result.values()])} results)</h1>
+ <h1>Articles containing the string <i>${query}</i> (${sum([len(articles) for articles in search_result.values()])} results)</h1>
%else:
<h1>String <i>${query}</i> not found.</h1>
%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
bgstack15