From e1c21fdc5ad687864d1f1ecbfbd9a4c58a13b3b7 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Fri, 13 Jun 2025 11:01:33 +0200 Subject: [PATCH] Fix accidental reference to old style transferwise API Clearly missed one field in the update, that was still referencing the old API structure. --- .../management/commands/transferwise_fetch_transactions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresqleu/transferwise/management/commands/transferwise_fetch_transactions.py b/postgresqleu/transferwise/management/commands/transferwise_fetch_transactions.py index 7856ed85..6b0fa2ad 100644 --- a/postgresqleu/transferwise/management/commands/transferwise_fetch_transactions.py +++ b/postgresqleu/transferwise/management/commands/transferwise_fetch_transactions.py @@ -60,7 +60,7 @@ class Command(BaseCommand): 'datetime': api.parse_datetime(t['datetime']), 'amount': t['amount'], 'feeamount': t['feeamount'], - 'transtype': t['details']['type'], + 'transtype': t['transtype'], 'paymentref': t['paymentref'][:200], 'fulldescription': t['fulldescription'], } -- 2.39.5