mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 02:22:22 +02:00
Mediawiki's unit test
This commit is contained in:
parent
1ea5bc63a5
commit
a96208be96
3 changed files with 134 additions and 6 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue