1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-19 02:40:11 +01:00

[fix] default category

This commit is contained in:
asciimoo 2013-10-20 21:19:15 +02:00
parent 15a2c27864
commit ee2a55a859

View File

@ -78,6 +78,9 @@ def index():
if ccateg in categories: if ccateg in categories:
selected_categories.append(ccateg) selected_categories.append(ccateg)
selected_engines.extend(x.name for x in categories[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') query = request.form['q'].encode('utf-8')
results = search(query, request, selected_engines) results = search(query, request, selected_engines)
remember_categs = True if 'save' in request.form else False remember_categs = True if 'save' in request.form else False