From 307a4b0330a7d461aa7c0139d042070e039d8a92 Mon Sep 17 00:00:00 2001 From: Benjamin Loison Date: Wed, 16 Oct 2024 20:09:22 +0200 Subject: [PATCH] Complete previous commit --- bnp_pdf_statement_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bnp_pdf_statement_parser.py b/bnp_pdf_statement_parser.py index 337b2b0..6604d84 100755 --- a/bnp_pdf_statement_parser.py +++ b/bnp_pdf_statement_parser.py @@ -64,7 +64,7 @@ def isTransactionFromOwnAccounts(comment): # print(comment) return comment.startswith('DEPOT INITIAL DU COMPTE\n') or \ comment.startswith('VIR CPTE A CPTE EMIS /MOTIF ') or \ - VIRT_A_CPTE_EMIS_SUR_LE_REGEX.match(comment)#comment.startswith('VIRT CPTE A CPTE EMIS SUR LE') + VIRT_A_CPTE_EMIS_SUR_LE_REGEX.fullmatch(comment)#comment.startswith('VIRT CPTE A CPTE EMIS SUR LE') #comment.startswith('VIR CPTE A CPTE RECU /DE ') or \ # and comment.endswith('/REFDO /REFBEN') @@ -103,4 +103,4 @@ plt.xticks(xTicks, ticksLabels, rotation = 90) # How to show the horizontal lines for subticks? plt.grid(axis = 'y') -plt.show() \ No newline at end of file +plt.show()