From: Magnus Hagander Date: Fri, 13 Jun 2025 09:01:33 +0000 (+0200) Subject: Fix accidental reference to old style transferwise API X-Git-Url: http://git.postgresql.org/gitweb/api.html?a=commitdiff_plain;p=pgeu-system.git Fix accidental reference to old style transferwise API Clearly missed one field in the update, that was still referencing the old API structure. --- 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'], }