mirror of
https://github.com/searxng/searxng.git
synced 2024-11-17 18:00:12 +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_time'] = 0
|
||||||
engine.stats['page_load_count'] = 0
|
engine.stats['page_load_count'] = 0
|
||||||
|
|
||||||
|
|
||||||
for category_name in engine.categories:
|
for category_name in engine.categories:
|
||||||
categories.setdefault(category_name, []).append(engine)
|
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):
|
def search_one_request_safe(engine_name, query, request_params, result_container, start_time, timeout_limit):
|
||||||
if engines[engine_name].offline:
|
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)
|
return search_one_http_request_safe(engine_name, query, request_params, result_container, start_time, timeout_limit)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user