Remove fields from transactions
This commit is contained in:
parent
f296c33d1c
commit
266a294e73
|
@ -57,7 +57,6 @@ class Transactions(object):
|
||||||
leg = inside["legs"][0]
|
leg = inside["legs"][0]
|
||||||
|
|
||||||
account_type = leg["counterparty"]["account_type"]
|
account_type = leg["counterparty"]["account_type"]
|
||||||
account_id = leg["counterparty"]["account_id"]
|
|
||||||
|
|
||||||
amount = leg["amount"]
|
amount = leg["amount"]
|
||||||
currency = leg["currency"]
|
currency = leg["currency"]
|
||||||
|
@ -71,7 +70,6 @@ class Transactions(object):
|
||||||
"state": state,
|
"state": state,
|
||||||
"reference": reference,
|
"reference": reference,
|
||||||
"account_type": account_type,
|
"account_type": account_type,
|
||||||
"account_id": account_id,
|
|
||||||
"amount": amount,
|
"amount": amount,
|
||||||
"currency": currency,
|
"currency": currency,
|
||||||
"description": description,
|
"description": description,
|
||||||
|
@ -79,6 +77,9 @@ class Transactions(object):
|
||||||
|
|
||||||
self.log.info("Transaction processed: {formatted}", formatted=dumps(to_store, indent=2))
|
self.log.info("Transaction processed: {formatted}", formatted=dumps(to_store, indent=2))
|
||||||
r.hmset(f"tx.{txid}", to_store)
|
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):
|
def find_tx(self, reference, amount):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue