Fix output from release trade and notify about useless accounts

This commit is contained in:
2022-03-12 20:16:10 +00:00
parent 4e9e5ef0fb
commit fbe9dc2325
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