[weboob] [PATCH 1/1] CrAgr: Fixed the history operation so that it basically works when every non-ASCII character on the bank website is replaced with two interrogation marks.

xavier at tuxfamily.org xavier at tuxfamily.org
Sat Feb 19 15:07:50 CET 2011


From: Xavier G <xavier at tuxfamily.org>


Signed-off-by: Xavier G <xavier at tuxfamily.org>
---
 weboob/backends/cragr/pages/accounts_list.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/weboob/backends/cragr/pages/accounts_list.py b/weboob/backends/cragr/pages/accounts_list.py
index 2700c9a..23626d9 100644
--- a/weboob/backends/cragr/pages/accounts_list.py
+++ b/weboob/backends/cragr/pages/accounts_list.py
@@ -76,7 +76,7 @@ class AccountsList(CragrBasePage):
         title_spans = self.document.xpath('/html/body/div[@class="dv"]/span')
         for title_span in title_spans:
             title_text = title_span.text_content().strip().replace("\n", '')
-            if (re.match('.*Compte.*n.[0-9]+.*au.*', title_text)):
+            if (re.match('.*Compte.*n.*[0-9]+.*au.*', title_text)):
                 return True
         return False
 
-- 
1.7.2.3




More information about the weboob mailing list