From 8a4fb5758cb84146562622c602be2590a2575c9a 2024-08-20 13:32:51 From: Ben Sturmfels Date: 2024-08-20 13:32:51 Subject: [PATCH] statement_reconciler: Fix TypeError in Chase reconciler There was an incorrect call to replace(). --- diff --git a/conservancy_beancount/reconcile/statement_reconciler.py b/conservancy_beancount/reconcile/statement_reconciler.py index 87865cc1741f0bb3284f8dbf9d9d2025d6e064bc..c399d4c3f2b3eb2ca11bcf3aa67d43829245c304 100644 --- a/conservancy_beancount/reconcile/statement_reconciler.py +++ b/conservancy_beancount/reconcile/statement_reconciler.py @@ -290,7 +290,7 @@ def standardize_chase_record(row: Dict, line: int) -> Dict: # various transaction types: # https://github.com/mtlynch/beancount-chase-bank/blob/master/beancount_chase/checking.py # See also: https://awesome-beancount.com/ - 'payee': (row['Description'] or '').replace('ORIG CO NAME:')[:20], + 'payee': (row['Description'] or '').replace('ORIG CO NAME:', '')[:20], 'check_id': '', 'line': line, } diff --git a/setup.cfg b/setup.cfg index 4005042aafe5197e917d95f9ecea09f44fb1ec3e..40259cfb5c845e4d819957d2f20a77227c56f95a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = conservancy_beancount -version = 1.20.0 +version = 1.20.1 author = Software Freedom Conservancy author_email = info@sfconservancy.org description = Plugin, library, and reports for reading Conservancy’s books