diff options
| author | Magnus Hagander | 2023-06-21 08:16:02 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2023-06-21 08:16:02 +0000 |
| commit | 537469bc104742e55d0c9330a82345393ba2f670 (patch) | |
| tree | c2c8ff6b4725f2182ce336a45379a4dfbe50a643 /postgresqleu | |
| parent | 2879b243d5ee948b460b3e660dd39587837dba77 (diff) | |
Replace comma with space in plaid transaction texts
It seems plaid inserts a comma in multiline, or just long, payment
references sometimes. Our other banks put in spaces (or nothing). To
keep our regexps in pending bank matcher works, just replace the comma
with a space - it's very unlikely to be significant anyway.
Diffstat (limited to 'postgresqleu')
| -rw-r--r-- | postgresqleu/plaid/management/commands/plaid_fetch_transactions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/plaid/management/commands/plaid_fetch_transactions.py b/postgresqleu/plaid/management/commands/plaid_fetch_transactions.py index 52cba0b0..2fe54016 100644 --- a/postgresqleu/plaid/management/commands/plaid_fetch_transactions.py +++ b/postgresqleu/plaid/management/commands/plaid_fetch_transactions.py @@ -50,7 +50,7 @@ class Command(BaseCommand): defaults={ 'datetime': parse_datetime(t['datetime']) if t['datetime'] else make_aware(datetime.combine(parse_date(t['date']), time(0, 0))), 'amount': -Decimal(str(t['amount'])), # All plaid amounts are reported negative - 'paymentref': t['name'][:200], + 'paymentref': t['name'][:200].replace(',', ' '), 'transactionobject': t, } ) |
