Allow transactions with no ID to be sent on IRC
This commit is contained in:
parent
f78c351e75
commit
38c82862a4
|
@ -810,7 +810,10 @@ 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:
|
||||||
|
if "transaction_id" in transaction:
|
||||||
txid = transaction["transaction_id"]
|
txid = transaction["transaction_id"]
|
||||||
|
else:
|
||||||
|
txid = "not_set"
|
||||||
timestamp = transaction["timestamp"]
|
timestamp = transaction["timestamp"]
|
||||||
amount = transaction["amount"]
|
amount = transaction["amount"]
|
||||||
currency = transaction["currency"]
|
currency = transaction["currency"]
|
||||||
|
|
Loading…
Reference in New Issue