summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2013-10-23 21:45:14 +0200
committerasciimoo <asciimoo@gmail.com>2013-10-23 21:45:14 +0200
commitf48bc8b4e801418b201369e13b9b1fa46f7f7602 (patch)
tree42e02652747ac0627806aba7db779d9f2f3a502b /searx
parent52516dab97143c83bd4e0226a960daf22fdc0031 (diff)
[fix] unused var removed
Diffstat (limited to 'searx')
-rw-r--r--searx/webapp.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index f16f602b3..7867d66f6 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -65,7 +65,6 @@ def index():
request_data = request.args
if not request_data.get('q'):
return render('index.html')
- selected_engines = []
selected_categories = []
for pd_name,pd in request_data.items():
if pd_name.startswith('category_'):
@@ -81,7 +80,6 @@ def index():
query = request_data['q'].encode('utf-8')
results = search(query, request, selected_categories)
if request_data.get('format') == 'json':
- # TODO HTTP headers
return Response(json.dumps({'query': query, 'results': results}), mimetype='application/json')
template = render('results.html'
,results=results