fix parsing of accounts
This commit is contained in:
parent
f42842e03e
commit
26d69cd0f8
1 changed files with 2 additions and 2 deletions
|
|
@ -117,7 +117,7 @@ class BPbrowser(object):
|
||||||
account.label = tp.text
|
account.label = tp.text
|
||||||
account.link_id = tp.get("href")
|
account.link_id = tp.get("href")
|
||||||
account.id = compte.xpath("./td")[1].text
|
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)
|
self.Account_List.append(account)
|
||||||
|
|
||||||
#Parse epargne
|
#Parse epargne
|
||||||
|
|
@ -130,7 +130,7 @@ class BPbrowser(object):
|
||||||
account.label = tp.text
|
account.label = tp.text
|
||||||
account.link_id = tp.get("href")
|
account.link_id = tp.get("href")
|
||||||
account.id = epargne.xpath("./td")[1].text
|
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)
|
self.Account_List.append(account)
|
||||||
|
|
||||||
return self.Account_List
|
return self.Account_List
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue