From 4b877f530f42f27244994a58d62a2ddb0ba0b548 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Fri, 24 Aug 2012 17:06:22 +0200 Subject: [PATCH] update regexps --- modules/hsbc/pages/accounts.py | 2 +- modules/societegenerale/pages/accounts_list.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/hsbc/pages/accounts.py b/modules/hsbc/pages/accounts.py index 1fcd757a..91e331e5 100644 --- a/modules/hsbc/pages/accounts.py +++ b/modules/hsbc/pages/accounts.py @@ -63,7 +63,7 @@ class Transaction(FrenchTransaction): (re.compile('^PRLV (?P.*)'), FrenchTransaction.TYPE_ORDER), (re.compile('^CB (?P.*)\s+(?P
\d+)/(?P\d+)\s*(?P.*)'), FrenchTransaction.TYPE_CARD), - (re.compile('^DAB (?P
\d{2})/(?P\d{2}) (?P.*)'), + (re.compile('^DAB (?P
\d{2})/(?P\d{2}) ((?P\d{2})H(?P\d{2}) )?(?P.*?)( CB N°.*)?$'), FrenchTransaction.TYPE_WITHDRAWAL), (re.compile('^CHEQUE$'), FrenchTransaction.TYPE_CHECK), (re.compile('^COTIS\.? (?P.*)'), FrenchTransaction.TYPE_BANK), diff --git a/modules/societegenerale/pages/accounts_list.py b/modules/societegenerale/pages/accounts_list.py index 27b36ef4..086ff39d 100644 --- a/modules/societegenerale/pages/accounts_list.py +++ b/modules/societegenerale/pages/accounts_list.py @@ -74,6 +74,8 @@ class Transaction(FrenchTransaction): FrenchTransaction.TYPE_WITHDRAWAL), (re.compile(r'^CARTE \w+ (?P
\d{2})/(?P\d{2})( A (?P\d+)H(?P\d+))? RETRAIT DAB (?P.*)'), FrenchTransaction.TYPE_WITHDRAWAL), + (re.compile(r'^CARTE \w+ REMBT (?P
\d{2})/(?P\d{2})( A (?P\d+)H(?P\d+))? (?P.*)'), + FrenchTransaction.TYPE_PAYBACK), (re.compile(r'^(?PCARTE) \w+ (?P
\d{2})/(?P\d{2}) (?P.*)'), FrenchTransaction.TYPE_CARD), (re.compile(r'^(?P(COTISATION|PRELEVEMENT|TELEREGLEMENT|TIP)) (?P.*)'),