diff options
| author | asciimoo <asciimoo@gmail.com> | 2013-10-19 22:35:53 +0200 |
|---|---|---|
| committer | asciimoo <asciimoo@gmail.com> | 2013-10-19 22:35:53 +0200 |
| commit | a0cbc767e7bb67deabda7a75f6ba5389143b86a0 (patch) | |
| tree | cf414e464365d847082945557acef562f6b14929 /searx/webapp.py | |
| parent | 2cfefea06d55f1df7ac7e33c874e6d8b1f5edc63 (diff) | |
[enh] number of search results
Diffstat (limited to 'searx/webapp.py')
| -rw-r--r-- | searx/webapp.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 6bfe4c40a..c1b13c419 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -84,7 +84,12 @@ def index(): if request.form.get('format') == 'json': # TODO HTTP headers return json.dumps({'query': query, 'results': results}) - template = render('results.html', results=results, q=query.decode('utf-8'), selected_categories=selected_categories) + template = render('results.html' + ,results=results + ,q=query.decode('utf-8') + ,selected_categories=selected_categories + ,number_of_results=len(results) + ) resp = make_response(template) if remember_categs: resp.set_cookie('categories', ','.join(selected_categories)) |