Browse Source

Fix method call to BitcoinAverage

283
Tim Bellefleur 9 years ago
parent
commit
80bf9952e8
  1. 2
      plugins/exchange_rate.py

2
plugins/exchange_rate.py

@ -85,7 +85,7 @@ class ExchangeBase(PrintError):
class BitcoinAverage(ExchangeBase): class BitcoinAverage(ExchangeBase):
def update(self, ccy): def get_rates(self, ccy):
json = self.get_json('api.bitcoinaverage.com', '/ticker/global/all') json = self.get_json('api.bitcoinaverage.com', '/ticker/global/all')
return dict([(r, Decimal(json[r]['last'])) return dict([(r, Decimal(json[r]['last']))
for r in json if r != 'timestamp']) for r in json if r != 'timestamp'])

Loading…
Cancel
Save