Better format for ntransactions

master
Mark Veidemanis 2 years ago
parent d93eb8e936
commit a7a2bb729c
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

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

Loading…
Cancel
Save