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:
parent
a6f20caf32
commit
5796dc60c9
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
@ -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']:
|
||||
|
Loading…
Reference in New Issue
Block a user