Skip to content

Commit

Permalink
Merge pull request #117 from tarioch/bugfix/nordigen_transaction_id_o…
Browse files Browse the repository at this point in the history
…ptional

make transactionId optional, fixes #116
  • Loading branch information
tarioch authored Oct 3, 2024
2 parents 4b3e52c + 63acb15 commit 5c3a1bf
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/tariochbctools/importers/nordigen/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,13 @@ def extract(self, file, existing_entries):
r.json()["transactions"]["booked"], key=lambda trx: trx["bookingDate"]
)
for trx in transactions:
metakv = {
"nordref": trx["transactionId"],
}
if "transactionId" in trx:
metakv = {
"nordref": trx["transactionId"],
}
else:
metakv = {}

if "creditorName" in trx:
metakv["creditorName"] = trx["creditorName"]
if "debtorName" in trx:
Expand Down

0 comments on commit 5c3a1bf

Please sign in to comment.