diff options
| author | asciimoo <asciimoo@gmail.com> | 2013-10-15 22:54:15 +0200 |
|---|---|---|
| committer | asciimoo <asciimoo@gmail.com> | 2013-10-15 22:54:15 +0200 |
| commit | c4dfd416ad1ffab0ea76a87a2c8dcce07b59e512 (patch) | |
| tree | b984c8256438e80c001f7daf9b9f7c26a7b83184 | |
| parent | 15b8b7d9bbfce1835384f9e6c32550f8f4d01cc1 (diff) | |
[enh] default engine selection
| -rw-r--r-- | searx/webapp.py | 2 |
1 files changed, 2 insertions, 0 deletions
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')) |