summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--searx/engines/currency_convert.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/searx/engines/currency_convert.py b/searx/engines/currency_convert.py
index 18ea6cb1..3505bcf7 100644
--- a/searx/engines/currency_convert.py
+++ b/searx/engines/currency_convert.py
@@ -47,10 +47,7 @@ def response(resp):
resp.search_params['to_name'],
)
- url = 'https://duckduckgo.com/js/spice/currency/1/{0}/{1}'.format(
- resp.search_params['from'].upper(), resp.search_params['to']
- )
-
+ url = f"https://duckduckgo.com/?q={resp.search_params['from']}+to+{resp.search_params['to']}"
results.append({'answer': answer, 'url': url})
return results