mirror of
https://github.com/searx/searx
synced 2025-01-08 07:15:02 +01:00
[fix] autocomplete x-suggestion
This commit is contained in:
parent
0f4cb32bf1
commit
41aca9a068
@ -402,7 +402,7 @@ def autocompleter():
|
|||||||
|
|
||||||
# return autocompleter results
|
# return autocompleter results
|
||||||
if request_data.get('format') == 'x-suggestions':
|
if request_data.get('format') == 'x-suggestions':
|
||||||
return Response(json.dumps([query, results]),
|
return Response(json.dumps([query.query, results]),
|
||||||
mimetype='application/json')
|
mimetype='application/json')
|
||||||
else:
|
else:
|
||||||
return Response(json.dumps(results),
|
return Response(json.dumps(results),
|
||||||
|
Loading…
Reference in New Issue
Block a user