Update historical exchange rate query
Update historical exchange rate query for bitcoinvenezuela to reduce extra data returned.
This commit is contained in:
@@ -430,12 +430,12 @@ class Plugin(BasePlugin):
|
|||||||
cur_currency = self.config.get('currency', "EUR")
|
cur_currency = self.config.get('currency', "EUR")
|
||||||
if cur_currency == "VEF":
|
if cur_currency == "VEF":
|
||||||
try:
|
try:
|
||||||
resp_hist = self.exchanger.get_json('api.bitcoinvenezuela.com', "/historical/index.php")['VEF_BTC']
|
resp_hist = self.exchanger.get_json('api.bitcoinvenezuela.com', "/historical/index.php?coin=BTC")['VEF_BTC']
|
||||||
except Exception:
|
except Exception:
|
||||||
return
|
return
|
||||||
elif cur_currency == "ARS":
|
elif cur_currency == "ARS":
|
||||||
try:
|
try:
|
||||||
resp_hist = self.exchanger.get_json('api.bitcoinvenezuela.com', "/historical/index.php")['ARS_BTC']
|
resp_hist = self.exchanger.get_json('api.bitcoinvenezuela.com', "/historical/index.php?coin=BTC")['ARS_BTC']
|
||||||
except Exception:
|
except Exception:
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user