summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authorpyrrh0n1c <pyrrh0n1c@protonmail.com>2017-11-07 14:14:20 +0000
committerpyrrh0n1c <pyrrh0n1c@protonmail.com>2017-11-07 14:14:20 +0000
commit4340c0b16cd6e3375b1867cc9ff02c63d5c4e4fe (patch)
treed40756a91cd7419ac25f95ace354d414ad03a77e /searx/engines
parent2231b02add7443c2cc2692bc0d63d92dfd09c043 (diff)
downloadsearxng-4340c0b16cd6e3375b1867cc9ff02c63d5c4e4fe.tar.gz
searxng-4340c0b16cd6e3375b1867cc9ff02c63d5c4e4fe.zip
Fixed typos.
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/currency_convert.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/searx/engines/currency_convert.py b/searx/engines/currency_convert.py
index 984636cd7..1bb4e60c9 100644
--- a/searx/engines/currency_convert.py
+++ b/searx/engines/currency_convert.py
@@ -44,15 +44,15 @@ def request(query, params):
# wrong query
return 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'] = amount
params['from'] = from_currency
params['to'] = to_currency
params['from_name'] = iso4217_to_name(from_currency, 'en')
@@ -73,9 +73,9 @@ def response(resp):
return results
answer = '{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'],