From fbe9dc2325f3b9b8efa5dd1193076a66a1b980a9 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 12 Mar 2022 20:16:10 +0000 Subject: [PATCH] Fix output from release trade and notify about useless accounts --- handler/sinks/__init__.py | 1 + handler/transactions.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/handler/sinks/__init__.py b/handler/sinks/__init__.py index 094c4e0..febb87f 100644 --- a/handler/sinks/__init__.py +++ b/handler/sinks/__init__.py @@ -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 diff --git a/handler/transactions.py b/handler/transactions.py index 264b4ca..5ac8678 100644 --- a/handler/transactions.py +++ b/handler/transactions.py @@ -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): """