summaryrefslogtreecommitdiff
path: root/searx/search.py
diff options
context:
space:
mode:
authordalf <alex@al-f.net>2014-10-11 12:46:12 +0200
committerdalf <alex@al-f.net>2014-10-11 12:46:12 +0200
commit599c1137bbc2927c7f0d387ccd65daa2a30a6bf4 (patch)
tree01861ef7c51bbd3bc0de310089690057d800c508 /searx/search.py
parent4da795895d3699e0c185a344806d60b40027cc4f (diff)
downloadsearxng-599c1137bbc2927c7f0d387ccd65daa2a30a6bf4.tar.gz
searxng-599c1137bbc2927c7f0d387ccd65daa2a30a6bf4.zip
[fix] the bang was included in the search string
Diffstat (limited to 'searx/search.py')
-rw-r--r--searx/search.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/searx/search.py b/searx/search.py
index 0aa9d500a..064c68844 100644
--- a/searx/search.py
+++ b/searx/search.py
@@ -311,9 +311,6 @@ class Search(object):
if not self.request_data.get('q'):
raise Exception('noquery')
- # set query
- self.query = self.request_data['q']
-
# set pagenumber
pageno_param = self.request_data.get('pageno', '1')
if not pageno_param.isdigit() or int(pageno_param) < 1:
@@ -322,8 +319,11 @@ class Search(object):
self.pageno = int(pageno_param)
# parse query, if tags are set, which change the serch engine or search-language
- query_obj = Query(self.query, self.blocked_engines)
- query_obj.parse_query()
+ query_obj = Query(self.request_data['q'], self.blocked_engines)
+ query_obj.parse_query()
+
+ # set query
+ self.query = query_obj.getSearchQuery()
# get last selected language in query, if possible
# TODO support search with multible languages