From 266a294e735953e13553c4e210d13bbedad3ec22 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 28 Dec 2021 13:41:36 +0000 Subject: [PATCH] Remove fields from transactions --- handler/transactions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/handler/transactions.py b/handler/transactions.py index c6b10c6..8b29743 100644 --- a/handler/transactions.py +++ b/handler/transactions.py @@ -57,7 +57,6 @@ class Transactions(object): leg = inside["legs"][0] account_type = leg["counterparty"]["account_type"] - account_id = leg["counterparty"]["account_id"] amount = leg["amount"] currency = leg["currency"] @@ -71,7 +70,6 @@ class Transactions(object): "state": state, "reference": reference, "account_type": account_type, - "account_id": account_id, "amount": amount, "currency": currency, "description": description, @@ -79,6 +77,9 @@ class Transactions(object): self.log.info("Transaction processed: {formatted}", formatted=dumps(to_store, indent=2)) r.hmset(f"tx.{txid}", to_store) + self.irc.client.msg( + self.irc.client.channel, f"AUTO Incoming transaction: {amount}{currency} ({reference}) - {state} - {description}" + ) def find_tx(self, reference, amount): """