1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-17 18:00:12 +01:00

[mod] searx.webapp: code clean up

This commit is contained in:
Alexandre Flament 2021-09-02 16:15:22 +02:00
parent b9c73fb697
commit 3c377c0aa8

View File

@ -49,13 +49,14 @@ from flask_babel import (
format_decimal, format_decimal,
) )
from searx import logger
from searx import get_setting
from searx import ( from searx import (
logger,
get_setting,
settings, settings,
searx_debug, searx_debug,
) )
from searx.settings_defaults import OUTPUT_FORMATS from searx.settings_defaults import OUTPUT_FORMATS
from searx.settings_loader import get_default_settings_path
from searx.exceptions import SearxParameterException from searx.exceptions import SearxParameterException
from searx.engines import ( from searx.engines import (
categories, categories,
@ -91,8 +92,10 @@ from searx.preferences import (
ValidationException, ValidationException,
LANGUAGE_CODES, LANGUAGE_CODES,
) )
from searx.answerers import answerers from searx.answerers import (
from searx.answerers import ask answerers,
ask,
)
from searx.metrics import ( from searx.metrics import (
get_engines_stats, get_engines_stats,
get_engine_errors, 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.search import SearchWithPlugins, initialize as search_initialize
from searx.network import stream as http_stream, set_context_network_name 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.search.checker import get_result as checker_get_result
from searx.settings_loader import get_default_settings_path
logger = logger.getChild('webapp') logger = logger.getChild('webapp')