Handle the case when the creditdunord CB label is "OPERATION SUR CARTE" (closes #1712)

Signed-off-by: Jean-Philippe Dutreve <jdutreve@winancial.com>
This commit is contained in:
Jean-Philippe Dutreve 2015-01-27 19:10:32 +01:00 committed by Romain Bignon
commit 82f0a27790

View file

@ -88,7 +88,7 @@ class AccountsPage(CDNBasePage):
def get_account_type(self, label):
for pattern, actype in self.TYPES.iteritems():
if label.startswith(pattern):
if label.startswith(pattern) or label.endswith(pattern):
return actype
return Account.TYPE_UNKNOWN