diff options
author | Alexandre Flament <alex@al-f.net> | 2020-09-22 13:59:27 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2020-09-22 18:59:51 +0200 |
commit | 2dbc0de0cd000459ebfdb3d015be8684e737e95c (patch) | |
tree | f0087cd5dcf9c349d5a23ebb9bccea57bd875878 /searx/query.py | |
parent | 21dbc7e852a5c48097c0067e78f0600972e54823 (diff) | |
download | searxng-2dbc0de0cd000459ebfdb3d015be8684e737e95c.tar.gz searxng-2dbc0de0cd000459ebfdb3d015be8684e737e95c.zip |
[mod] add searx/webadapter.py
* move searx.search.get_search_query_from_webapp to searx.webadapter
* move searx.query.SearchQuery to searx.search
Diffstat (limited to 'searx/query.py')
-rw-r--r-- | searx/query.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/searx/query.py b/searx/query.py index 7c2b0a249..9e2af0c45 100644 --- a/searx/query.py +++ b/searx/query.py @@ -178,23 +178,3 @@ class RawTextQuery: def getFullQuery(self): # get full querry including whitespaces return ''.join(self.query_parts) - - -class SearchQuery: - """container for all the search parameters (query, language, etc...)""" - - def __init__(self, query, engines, categories, lang, safesearch, pageno, time_range, - timeout_limit=None, preferences=None, external_bang=None): - self.query = query - self.engines = engines - self.categories = categories - self.lang = lang - self.safesearch = safesearch - self.pageno = pageno - self.time_range = None if time_range in ('', 'None', None) else time_range - self.timeout_limit = timeout_limit - self.preferences = preferences - self.external_bang = external_bang - - def __str__(self): - return self.query + ";" + str(self.engines) |