mirror of
https://github.com/searxng/searxng.git
synced 2025-07-19 03:09:25 +02:00
[enh][mod] search refactor
This commit is contained in:
parent
a07b2b514c
commit
b0ba367a1a
4 changed files with 170 additions and 174 deletions
|
@ -39,8 +39,7 @@ from flask import (
|
|||
from flask.ext.babel import Babel, gettext, format_date
|
||||
from searx import settings, searx_dir
|
||||
from searx.engines import (
|
||||
search as do_search, categories, engines, get_engines_stats,
|
||||
engine_shortcuts
|
||||
categories, engines, get_engines_stats, engine_shortcuts
|
||||
)
|
||||
from searx.utils import (
|
||||
UnicodeWriter, highlight_content, html_to_text, get_themes
|
||||
|
@ -191,12 +190,7 @@ def index():
|
|||
'index.html',
|
||||
)
|
||||
|
||||
# TODO moar refactor - do_search integration into Search class
|
||||
search.results, search.suggestions = do_search(search.query,
|
||||
request,
|
||||
search.engines,
|
||||
search.pageno,
|
||||
search.lang)
|
||||
search.results, search.suggestions = search.search(request)
|
||||
|
||||
for result in search.results:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue