diff options
author | Noémi Ványi <sitbackandwait@gmail.com> | 2019-09-30 14:27:13 +0200 |
---|---|---|
committer | Noémi Ványi <sitbackandwait@gmail.com> | 2019-10-16 15:52:48 +0200 |
commit | 5796dc60c9de4f8c54452bb0bd64ed993378e503 (patch) | |
tree | 1e5b9d507acf2e7f433e539e256cf7d09132c82b /searx | |
parent | a6f20caf32af463b57a026ee7cb7ed6317db6b8b (diff) | |
download | searxng-5796dc60c9de4f8c54452bb0bd64ed993378e503.tar.gz searxng-5796dc60c9de4f8c54452bb0bd64ed993378e503.zip |
fix pep 8 check
Diffstat (limited to 'searx')
-rw-r--r-- | searx/engines/__init__.py | 1 | ||||
-rw-r--r-- | searx/search.py | 2 | ||||
-rw-r--r-- | 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']: |