fix conversion in exchange rate plugin
This commit is contained in:
@@ -68,7 +68,7 @@ class Plugin(BasePlugin):
|
|||||||
return "Exchange rates"
|
return "Exchange rates"
|
||||||
|
|
||||||
def description(self):
|
def description(self):
|
||||||
return """exchange rates"""
|
return """exchange rates, retrieved from blockchain.info"""
|
||||||
|
|
||||||
def init(self):
|
def init(self):
|
||||||
self.win = self.gui.main_window
|
self.win = self.gui.main_window
|
||||||
@@ -82,6 +82,7 @@ class Plugin(BasePlugin):
|
|||||||
m = re.match( _( "Balance" ) + ": (\d.+) " + self.win.base_unit(), str(text))
|
m = re.match( _( "Balance" ) + ": (\d.+) " + self.win.base_unit(), str(text))
|
||||||
if m:
|
if m:
|
||||||
amount = Decimal(m.group(1))
|
amount = Decimal(m.group(1))
|
||||||
|
if self.win.base_unit() == 'mBTC': amount = amount / 1000
|
||||||
text += self.create_quote_text(amount)
|
text += self.create_quote_text(amount)
|
||||||
self.win.balance_label.setText(text)
|
self.win.balance_label.setText(text)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user