From a0cbc767e7bb67deabda7a75f6ba5389143b86a0 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Sat, 19 Oct 2013 22:35:53 +0200 Subject: [enh] number of search results --- searx/webapp.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'searx/webapp.py') 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)) -- cgit v1.2.3