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.

Signed-off-by: Xavier G <xavier@tuxfamily.org>
Signed-off-by: Romain Bignon <romain@peerfuse.org>
This commit is contained in:
Xavier G 2011-02-19 15:07:50 +01:00 committed by Romain Bignon
commit 111a49e00e

View file

@ -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