From 26d69cd0f89abf7a7288c4659b86a825cf9a3d66 Mon Sep 17 00:00:00 2001 From: Nicolas Duhamel Date: Tue, 9 Nov 2010 11:35:50 +0100 Subject: [PATCH] fix parsing of accounts --- weboob/backends/bp/browser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weboob/backends/bp/browser.py b/weboob/backends/bp/browser.py index 06973d99..6670107f 100644 --- a/weboob/backends/bp/browser.py +++ b/weboob/backends/bp/browser.py @@ -117,7 +117,7 @@ class BPbrowser(object): account.label = tp.text account.link_id = tp.get("href") account.id = compte.xpath("./td")[1].text - account.balance = ''.join( compte.xpath("./td/span")[0].text.replace('.','').replace(',','.').split() ) + account.balance = float(''.join( compte.xpath("./td/span")[0].text.replace('.','').replace(',','.').split() )) self.Account_List.append(account) #Parse epargne @@ -130,7 +130,7 @@ class BPbrowser(object): account.label = tp.text account.link_id = tp.get("href") account.id = epargne.xpath("./td")[1].text - account.balance = ''.join( epargne.xpath("./td/span")[0].text.replace('.','').replace(',','.').split() ) + account.balance = float(''.join( epargne.xpath("./td/span")[0].text.replace('.','').replace(',','.').split() ) ) self.Account_List.append(account) return self.Account_List