From 7bf1013c1591c1af177063477fb4ac9ed178ff2a Mon Sep 17 00:00:00 2001 From: potato Date: Tue, 6 Sep 2016 14:24:08 +0200 Subject: [PATCH] [enh] removed missing params; [fix] pep8 --- searx/engines/dictzone.py | 11 +++++------ 1 file 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 - -