Fix output from release trade and notify about useless accounts
This commit is contained in:
parent
4e9e5ef0fb
commit
fbe9dc2325
|
@ -67,6 +67,7 @@ class Sinks(util.Base):
|
||||||
for account in list(accounts):
|
for account in list(accounts):
|
||||||
if len(account["account_number"]) == 1:
|
if len(account["account_number"]) == 1:
|
||||||
account_infos[bank].remove(account)
|
account_infos[bank].remove(account)
|
||||||
|
self.log.warning(f"Potentially useless bank account: {account}")
|
||||||
currencies = [account["currency"] for bank, accounts in account_infos.items() for account in accounts]
|
currencies = [account["currency"] for bank, accounts in account_infos.items() for account in accounts]
|
||||||
|
|
||||||
self.account_info = account_infos
|
self.account_info = account_infos
|
||||||
|
|
|
@ -189,8 +189,8 @@ class Transactions(util.Base):
|
||||||
|
|
||||||
# Parse the escrow release response
|
# Parse the escrow release response
|
||||||
message = rtrn["message"]
|
message = rtrn["message"]
|
||||||
message_long = rtrn["response"]["data"]["message"]
|
#message_long = rtrn["response"]["data"]["message"]
|
||||||
self.irc.sendmsg(f"{message} - {message_long}")
|
self.irc.sendmsg(f"{dumps(message)}")
|
||||||
|
|
||||||
def new_trade(self, asset, trade_id, buyer, currency, amount, amount_crypto, provider):
|
def new_trade(self, asset, trade_id, buyer, currency, amount, amount_crypto, provider):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue