Mercurial > public > finance-parser
diff process_document/app.py @ 9:bf19235a9636
minor bugs and add sample reports
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Wed, 07 Jun 2023 11:07:14 +0100 |
parents | d15ccf5f1373 |
children |
line wrap: on
line diff
--- a/process_document/app.py Mon Jun 05 20:07:22 2023 +0100 +++ b/process_document/app.py Wed Jun 07 11:07:14 2023 +0100 @@ -152,7 +152,7 @@ for amount_format in amount_formats: plural_amount_format = f'{amount_format}s' - if amount_format in phrase or plural_amount_format in phrase: + if amount_format in phrase.lower() or plural_amount_format in phrase.lower(): return amount_format