From 5796dc60c9de4f8c54452bb0bd64ed993378e503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Mon, 30 Sep 2019 14:27:13 +0200 Subject: [PATCH] fix pep 8 check --- searx/engines/__init__.py | 1 - searx/search.py | 2 +- searx/utils.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index 2585711a8..2393f52b6 100644 --- a/searx/engines/__init__.py +++ b/searx/engines/__init__.py @@ -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) diff --git a/searx/search.py b/searx/search.py index 45f54bb0d..5c268cc5d 100644 --- a/searx/search.py +++ b/searx/search.py @@ -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) diff --git a/searx/utils.py b/searx/utils.py index 4029cf2ae..e61a134f7 100644 --- a/searx/utils.py +++ b/searx/utils.py @@ -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']: