mirror of
https://github.com/searxng/searxng.git
synced 2025-07-15 09:19:20 +02:00
[enh] explicit engine init
This commit is contained in:
parent
14f58bdaec
commit
a605377c40
2 changed files with 8 additions and 9 deletions
|
@ -53,7 +53,7 @@ from flask_babel import Babel, gettext, format_date, format_decimal
|
|||
from flask.json import jsonify
|
||||
from searx import settings, searx_dir, searx_debug
|
||||
from searx.engines import (
|
||||
categories, engines, get_engines_stats, engine_shortcuts
|
||||
categories, engines, engine_shortcuts, get_engines_stats, initialize_engines
|
||||
)
|
||||
from searx.utils import (
|
||||
UnicodeWriter, highlight_content, html_to_text, get_themes,
|
||||
|
@ -765,6 +765,7 @@ def page_not_found(e):
|
|||
|
||||
|
||||
def run():
|
||||
initialize_engines(settings['engines'])
|
||||
app.run(
|
||||
debug=searx_debug,
|
||||
use_debugger=searx_debug,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue