Commit ec919198 authored by Johnny Kalajdzic's avatar Johnny Kalajdzic

Merge branch 'inprove_the_engine' into 'eelo_theme'

Improve the engine

See merge request spot/my-spot!4
parents fd728937 fc02e2f1
......@@ -4,7 +4,7 @@ general:
search:
safe_search : 2 # Filter results. 0: None, 1: Moderate, 2: Strict
autocomplete : "" # Existing autocomplete backends: "dbpedia", "duckduckgo", "google", "startpage", "wikipedia" - leave blank to turn it off by default
autocomplete : "duckduckgo" # Existing autocomplete backends: "dbpedia", "duckduckgo", "google", "startpage", "wikipedia" - leave blank to turn it off by default
language : "en-US"
server:
......
......@@ -504,7 +504,7 @@ def index():
for engine in categories['images']:
if (engine.name, 'images') not in disabled_engines:
search_images_engines.append({'category': 'images', 'name': engine.name})
images_search_query = SearchQuery(search_query.query, search_images_engines, ['images'], search_query.lang,
images_search_query = SearchQuery(search_query.query.decode('utf8'), search_images_engines, ['images'], search_query.lang,
search_query.safesearch, 1, search_query.time_range)
results_images_big = SearchWithPlugins(images_search_query, request.user_plugins,
request).search().get_ordered_results()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment