summaryrefslogtreecommitdiff
path: root/searx/engines/dictzone.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/dictzone.py')
-rw-r--r--searx/engines/dictzone.py11
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
-
-