SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
Fixed typos.
pyrrh0n1c4340c0b16cd6
diff --git a/searx/engines/currency_convert.py b/searx/engines/currency_convert.pyindex 984636cd7..1bb4e60c9 100644--- a/searx/engines/currency_convert.py+++ b/searx/engines/currency_convert.py@@ -44,15 +44,15 @@ def request(query, params):# wrong queryreturn params- ammount, from_currency, to_currency = m.groups()- ammount = float(ammount)+ amount, from_currency, to_currency = m.groups()+ amount = float(amount)from_currency = name_to_iso4217(from_currency.strip())to_currency = name_to_iso4217(to_currency.strip())q = (from_currency + to_currency).upper()params['url'] = url.format(from_currency, to_currency)- params['ammount'] = ammount+ params['amount'] = amountparams['from'] = from_currencyparams['to'] = to_currencyparams['from_name'] = iso4217_to_name(from_currency, 'en')@@ -73,9 +73,9 @@ def response(resp):return resultsanswer = '{0} {1} = {2} {3}, 1 {1} ({5}) = {4} {3} ({6})'.format(- resp.search_params['ammount'],+ resp.search_params['amount'],resp.search_params['from'],- resp.search_params['ammount'] * conversion_rate,+ resp.search_params['amount'] * conversion_rate,resp.search_params['to'],conversion_rate,resp.search_params['from_name'],diff --git a/tests/unit/engines/test_currency_convert.py b/tests/unit/engines/test_currency_convert.pyindex 2814d791d..e8353a93a 100644--- a/tests/unit/engines/test_currency_convert.py+++ b/tests/unit/engines/test_currency_convert.py@@ -23,7 +23,7 @@ class TestCurrencyConvertEngine(SearxTestCase):def test_response(self):dicto = defaultdict(dict)- dicto['ammount'] = float(10)+ dicto['amount'] = float(10)dicto['from'] = "GBP"dicto['to'] = "USD"dicto['from_name'] = "pound sterling"