[fix] the bang was included in the search string

This commit is contained in:
dalf 2014-10-11 12:46:12 +02:00
parent 4da795895d
commit 599c1137bb
1 changed files with 5 additions and 5 deletions

View File

@ -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,9 +319,12 @@ 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 = 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
if len(query_obj.languages):