1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-04 20:30:11 +01:00

fix pep 8 check

This commit is contained in:
Noémi Ványi 2019-09-30 14:27:13 +02:00
parent a6f20caf32
commit 5796dc60c9
3 changed files with 2 additions and 3 deletions

View File

@ -139,7 +139,6 @@ def load_engine(engine_data):
engine.stats['page_load_time'] = 0
engine.stats['page_load_count'] = 0
for category_name in engine.categories:
categories.setdefault(category_name, []).append(engine)

View File

@ -103,7 +103,7 @@ def search_one_offline_request(engine, query, request_params):
def search_one_request_safe(engine_name, query, request_params, result_container, start_time, timeout_limit):
if engines[engine_name].offline:
return search_one_offline_request_safe(engine_name, query, request_params, result_container, start_time, timeout_limit)
return search_one_offline_request_safe(engine_name, query, request_params, result_container, start_time, timeout_limit) # noqa
return search_one_http_request_safe(engine_name, query, request_params, result_container, start_time, timeout_limit)

View File

@ -443,7 +443,7 @@ def get_engine_from_settings(name):
if 'engines' not in settings:
return {}
for engine in settings['engines']:
for engine in settings['engines']:
if 'name' not in engine:
continue
if name == engine['name']: