Fix output from release trade and notify about useless accounts

This commit is contained in:
Mark Veidemanis 2022-03-12 20:16:10 +00:00
parent 4e9e5ef0fb
commit fbe9dc2325
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 3 additions and 2 deletions

View File

@ -67,6 +67,7 @@ class Sinks(util.Base):
for account in list(accounts):
if len(account["account_number"]) == 1:
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]
self.account_info = account_infos

View File

@ -189,8 +189,8 @@ class Transactions(util.Base):
# Parse the escrow release response
message = rtrn["message"]
message_long = rtrn["response"]["data"]["message"]
self.irc.sendmsg(f"{message} - {message_long}")
#message_long = rtrn["response"]["data"]["message"]
self.irc.sendmsg(f"{dumps(message)}")
def new_trade(self, asset, trade_id, buyer, currency, amount, amount_crypto, provider):
"""