mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[fix] follow up of PR-1856
- `` url: false`` breaks with existing installations
e92755d358 (r89577339)
- PR-1856: https://github.com/searxng/searxng/pull/1856
- Comments from review: https://github.com/searxng/searxng/pull/1856#pullrequestreview-1176402810
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
e63457584b
commit
ec7c2b1a04
5 changed files with 15 additions and 21 deletions
|
|
@ -120,7 +120,7 @@ from searx.locales import (
|
|||
# renaming names from searx imports ...
|
||||
from searx.autocomplete import search_autocomplete, backends as autocomplete_backends
|
||||
from searx.languages import language_codes as languages
|
||||
from searx.shared.redisdb import initialize as redis_initialize
|
||||
from searx.shared import redisdb
|
||||
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
|
||||
|
|
@ -1385,7 +1385,7 @@ werkzeug_reloader = flask_run_development or (searx_debug and __name__ == "__mai
|
|||
if not werkzeug_reloader or (werkzeug_reloader and os.environ.get("WERKZEUG_RUN_MAIN") == "true"):
|
||||
locales_initialize()
|
||||
_INFO_PAGES = infopage.InfoPageSet()
|
||||
redis_initialize()
|
||||
redisdb.init()
|
||||
plugin_initialize(app)
|
||||
search_initialize(enable_checker=True, check_network=True, enable_metrics=settings['general']['enable_metrics'])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue