Fix getting transactions
This commit is contained in:
parent
7b38e487cf
commit
49b1f0ea52
|
@ -534,8 +534,9 @@ class IRCCommands(object):
|
|||
def run(cmd, spl, length, authed, msg, agora, tx, ux):
|
||||
if length == 1:
|
||||
accounts = tx.sinks.nordigen.get_all_account_info()
|
||||
for name, account in accounts.items():
|
||||
msg(f"{name} {account['account_id']} {account['details']} {account['currency']}")
|
||||
for name, accounts in accounts.items():
|
||||
for account in accounts:
|
||||
msg(f"{name} {account['account_id']} {account['details']} {account['currency']}")
|
||||
|
||||
class transactions(object):
|
||||
name = "transactions"
|
||||
|
@ -550,7 +551,7 @@ class IRCCommands(object):
|
|||
transactions = tx.sinks.truelayer.get_transactions(account, account_id)
|
||||
for transaction in transactions:
|
||||
txid = transaction["transaction_id"]
|
||||
ptxid = transaction["provider_transaction_id"]
|
||||
ptxid = transaction["meta"]["provider_transaction_id"]
|
||||
txtype = transaction["transaction_type"]
|
||||
timestamp = transaction["timestamp"]
|
||||
amount = transaction["amount"]
|
||||
|
|
Loading…
Reference in New Issue