diff options
Diffstat (limited to 'source/static/templates/search.html')
-rw-r--r-- | source/static/templates/search.html | 3 |
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 |