From c4dfd416ad1ffab0ea76a87a2c8dcce07b59e512 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Tue, 15 Oct 2013 22:54:15 +0200 Subject: [PATCH] [enh] default engine selection --- searx/webapp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/searx/webapp.py b/searx/webapp.py index fb8e489e7..38084714a 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -51,6 +51,8 @@ def index(): for pd_name,pd in request.form.items(): if pd_name.startswith('engine_'): selected_engines.append(pd_name[7:]) + if not len(selected_engines): + selected_engines = engines.keys() query = request.form['q'].encode('utf-8') results = search(query, request, selected_engines) return render('results.html', results=results, q=query.decode('utf-8'))