From 32b87b47f54c8b32f57ae2af102b0d2aaf4bbd68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Thu, 29 Mar 2012 15:53:21 +0200 Subject: [PATCH] LCL: site specific fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported-by: Ch. Perret Signed-off-by: Pierre Mazière Tested-by: Ch. Perret --- modules/lcl/pages.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/lcl/pages.py b/modules/lcl/pages.py index 8ec3cae0..8a817dca 100644 --- a/modules/lcl/pages.py +++ b/modules/lcl/pages.py @@ -198,8 +198,9 @@ class AccountHistoryPage(BasePage): operation.raw=u''.join([txt.strip() for txt in td.itertext()]) elif value.startswith("solde") or value.startswith("mnt"): mntColumn+=1 - if td.text.strip() != "": - amount = float(td.text.strip().replace('.','').replace(',','.').replace(u"\u00A0",'').replace(' ','')) + amount=u''.join([txt.strip() for txt in td.itertext()]) + if amount != "": + amount = float(amount.replace('.','').replace(',','.').replace(u"\u00A0",'').replace(' ','')) if value.startswith("soldeDeb") or mntColumn==1: amount=-amount operation.amount=amount