From ee2a55a859b378c38a21ac58cfbfd40cbf64df07 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Sun, 20 Oct 2013 21:19:15 +0200 Subject: [PATCH] [fix] default category --- searx/webapp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/searx/webapp.py b/searx/webapp.py index c1b13c419..0c6606e63 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -78,6 +78,9 @@ def index(): if ccateg in categories: selected_categories.append(ccateg) selected_engines.extend(x.name for x in categories[ccateg]) + if not len(selected_engines): + selected_categories.append('general') + selected_engines.extend(x.name for x in categories['general']) query = request.form['q'].encode('utf-8') results = search(query, request, selected_engines) remember_categs = True if 'save' in request.form else False