summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2014-07-07 13:59:27 +0200
committerAdam Tauber <asciimoo@gmail.com>2014-07-07 13:59:27 +0200
commitb0ba367a1a575fbbd3d847bdbe39b6920d2f46e4 (patch)
tree096246e40b1f9b651322b7c97b25333ceedd1979 /searx/webapp.py
parenta07b2b514c38cff031e0e36b99878a6041873842 (diff)
[enh][mod] search refactor
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 2264382fc..295f6f9f7 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -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: