Better format for ntransactions

This commit is contained in:
Mark Veidemanis 2022-04-09 20:03:56 +01:00
parent d93eb8e936
commit a7a2bb729c
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 6 additions and 9 deletions

View File

@ -579,15 +579,12 @@ class IRCCommands(object):
account_id = spl[1]
transactions = tx.sinks.nordigen.get_transactions(account_id)
for transaction in transactions:
msg(dumps(transaction))
# txid = transaction["transaction_id"]
# ptxid = transaction["meta"]["provider_transaction_id"]
# txtype = transaction["transaction_type"]
# timestamp = transaction["timestamp"]
# amount = transaction["amount"]
# currency = transaction["currency"]
# description = transaction["description"]
# msg(f"{timestamp} {txid} {ptxid} {txtype} {amount}{currency} {description}")
txid = transaction["transaction_id"]
timestamp = transaction["timestamp"]
amount = transaction["amount"]
currency = transaction["currency"]
reference = transaction["reference"]
msg(f"{timestamp} {txid} {amount}{currency} {reference}")
class mapaccount(object):
name = "mapaccount"