Fix calls to money

master
Mark Veidemanis 2 years ago
parent 20b36a7c67
commit d95a1ae21f
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -409,6 +409,8 @@ class Money(util.Base):
if asset == "XMR":
amount_crypto = contact["data"]["amount_xmr"]
history = self.cg.get_coin_history_by_id(id="monero", date=date_formatted)
if "market_data" not in history:
return False
crypto_usd = float(history["market_data"]["current_price"]["usd"])
elif asset == "BTC":
amount_crypto = contact["data"]["amount_btc"]

@ -59,7 +59,7 @@ class Agora(sources.local.Local):
"""
Withdraw excess funds to our XMR wallets.
"""
totals_all = self.tx.get_total()
totals_all = self.money.get_total()
if totals_all is False:
return False

@ -62,7 +62,7 @@ class LBTC(sources.local.Local):
"""
Withdraw excess funds to our XMR wallets.
"""
totals_all = self.tx.get_total()
totals_all = self.money.get_total()
if totals_all is False:
return False

Loading…
Cancel
Save