diff options
author | Alexandre Flament <alex@al-f.net> | 2021-09-02 16:15:22 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-09-02 16:16:20 +0200 |
commit | 3c377c0aa84ae6c94660ff19da9a8a676aa39f09 (patch) | |
tree | 0d4fd30552f19f39033b87289d0707f4ac793a43 /searx | |
parent | b9c73fb69784726608d1a2d72b7a17f777d30b9d (diff) | |
download | searxng-3c377c0aa84ae6c94660ff19da9a8a676aa39f09.tar.gz searxng-3c377c0aa84ae6c94660ff19da9a8a676aa39f09.zip |
[mod] searx.webapp: code clean up
Diffstat (limited to 'searx')
-rwxr-xr-x | searx/webapp.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index b935424f1..e29b7f442 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -49,13 +49,14 @@ from flask_babel import ( format_decimal, ) -from searx import logger -from searx import get_setting from searx import ( + logger, + get_setting, settings, searx_debug, ) from searx.settings_defaults import OUTPUT_FORMATS +from searx.settings_loader import get_default_settings_path from searx.exceptions import SearxParameterException from searx.engines import ( categories, @@ -91,8 +92,10 @@ from searx.preferences import ( ValidationException, LANGUAGE_CODES, ) -from searx.answerers import answerers -from searx.answerers import ask +from searx.answerers import ( + answerers, + ask, +) from searx.metrics import ( get_engines_stats, get_engine_errors, @@ -110,7 +113,6 @@ from searx.locales import LOCALE_NAMES, UI_LOCALE_CODES, RTL_LOCALES from searx.search import SearchWithPlugins, initialize as search_initialize from searx.network import stream as http_stream, set_context_network_name from searx.search.checker import get_result as checker_get_result -from searx.settings_loader import get_default_settings_path logger = logger.getChild('webapp') |