logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: 599c1137bbc2927c7f0d387ccd65daa2a30a6bf4
parent 4da795895d3699e0c185a344806d60b40027cc4f
Author: dalf <alex@al-f.net>
Date:   Sat, 11 Oct 2014 12:46:12 +0200

[fix] the bang was included in the search string

Diffstat:

Msearx/search.py10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 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