From 82f0a277909e3351a136603d58e5be1445433772 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Dutreve Date: Tue, 27 Jan 2015 19:10:32 +0100 Subject: [PATCH] Handle the case when the creditdunord CB label is "OPERATION SUR CARTE" (closes #1712) Signed-off-by: Jean-Philippe Dutreve --- modules/creditdunord/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/creditdunord/pages.py b/modules/creditdunord/pages.py index a7c3130e..219ea52d 100644 --- a/modules/creditdunord/pages.py +++ b/modules/creditdunord/pages.py @@ -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