mirror of
https://github.com/searxng/searxng.git
synced 2025-12-29 15:10:02 +00:00
Mediawiki's unit test
This commit is contained in:
@@ -13,12 +13,9 @@ def request(query, params):
|
||||
if not m:
|
||||
# wrong query
|
||||
return params
|
||||
try:
|
||||
ammount, from_currency, to_currency = m.groups()
|
||||
ammount = float(ammount)
|
||||
except:
|
||||
# wrong params
|
||||
return params
|
||||
|
||||
ammount, from_currency, to_currency = m.groups()
|
||||
ammount = float(ammount)
|
||||
|
||||
q = (from_currency + to_currency).upper()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user