summaryrefslogtreecommitdiff
path: root/searx/engines/currency_convert.py
diff options
context:
space:
mode:
authorrinpatch <rinpatch@airmail.cc>2018-04-22 14:12:32 +0300
committerrinpatch <rinpatch@airmail.cc>2018-04-22 14:12:32 +0300
commitcd1374d2f2859005743e31eb7cff154fe4dd2fc4 (patch)
treebf49930165e42d63288e51599423f95fe378083d /searx/engines/currency_convert.py
parenta305dae9d88fe3c37ef18e4ce5cbe75f07c40a45 (diff)
added whitespaces
Diffstat (limited to 'searx/engines/currency_convert.py')
-rw-r--r--searx/engines/currency_convert.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/engines/currency_convert.py b/searx/engines/currency_convert.py
index 26e716b32..8eab8f673 100644
--- a/searx/engines/currency_convert.py
+++ b/searx/engines/currency_convert.py
@@ -44,7 +44,6 @@ def request(query, params):
if not m:
# wrong query
return params
-
amount, from_currency, to_currency = m.groups()
amount = float(amount)
from_currency = name_to_iso4217(from_currency.strip())
@@ -64,7 +63,7 @@ def request(query, params):
def response(resp):
"""remove first and last lines to get only json"""
- json_resp = resp.text[resp.text.find('\n')+1:resp.text.rfind('\n')-2]
+ json_resp = resp.text[resp.text.find('\n') + 1:resp.text.rfind('\n') - 2]
results = []
try:
conversion_rate = float(json.loads(json_resp)['conversion']['converted-amount'])