diff options
author | potato <mail@crazypotato.tk> | 2016-09-06 14:24:08 +0200 |
---|---|---|
committer | potato <mail@crazypotato.tk> | 2016-09-06 14:24:08 +0200 |
commit | 7bf1013c1591c1af177063477fb4ac9ed178ff2a (patch) | |
tree | 3c51a317a4ad7cfb11b8e15593911e2d2c1b7492 /searx/engines/dictzone.py | |
parent | bc806bfab1cc75279dc912bf443dc39178a872dd (diff) | |
download | searxng-7bf1013c1591c1af177063477fb4ac9ed178ff2a.tar.gz searxng-7bf1013c1591c1af177063477fb4ac9ed178ff2a.zip |
[enh] removed missing params; [fix] pep8
Diffstat (limited to 'searx/engines/dictzone.py')
-rw-r--r-- | searx/engines/dictzone.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/searx/engines/dictzone.py b/searx/engines/dictzone.py index f68f44887..212218343 100644 --- a/searx/engines/dictzone.py +++ b/searx/engines/dictzone.py @@ -26,6 +26,7 @@ def is_valid_lang(lang): return (True, l[1].lower()) return False + def request(query, params): m = parser_re.match(unicode(query, 'utf8')) if not m: @@ -39,13 +40,13 @@ def request(query, params): if not from_lang or not to_lang: return params - params['url'] = url.format(from_lang=from_lang[1], to_lang=to_lang[1],query=query) - params['from_lang'] = from_lang[1] - params['to_lang'] = to_lang[1] - params['query'] = query + params['url'] = url.format(from_lang=from_lang[1], + to_lang=to_lang[1], + query=query) return params + def response(resp): results = [] @@ -70,5 +71,3 @@ def response(resp): }) return results - - |