Commit 2a9d265b authored by Jerome Berthier's avatar Jerome Berthier Committed by Romain Bignon

[cmes] Handle lower case in transaction PATTERNS

On the new website they have lower case variants for at least Versement and Retrait.
parent 93035c30
......@@ -187,9 +187,9 @@ class CCBInvestmentPage(LoggedPage, HTMLPage):
class Transaction(FrenchTransaction):
PATTERNS = [(re.compile(u'^(?P<text>.*Versement.*)'), FrenchTransaction.TYPE_DEPOSIT),
(re.compile(u'^(?P<text>(Arbitrage|Prélèvements.*))'), FrenchTransaction.TYPE_ORDER),
(re.compile(u'^(?P<text>(Retrait|Paiement.*))'), FrenchTransaction.TYPE_WITHDRAWAL),
PATTERNS = [(re.compile(u'^(?P<text>.*[Vv]ersement.*)'), FrenchTransaction.TYPE_DEPOSIT),
(re.compile(u'^(?P<text>([Aa]rbitrage|[Pp]rélèvements.*))'), FrenchTransaction.TYPE_ORDER),
(re.compile(u'^(?P<text>([Rr]etrait|[Pp]aiement.*))'), FrenchTransaction.TYPE_WITHDRAWAL),
(re.compile(u'^(?P<text>.*)'), FrenchTransaction.TYPE_BANK),
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment