Fix currency for ing accounts
There is no € symbols in the home Page. And for the best I know, euro is the only one possibility
This commit is contained in:
parent
071bd9c597
commit
c3f7e412c8
1 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@
|
|||
from decimal import Decimal
|
||||
import re
|
||||
|
||||
from weboob.capabilities.bank import Account
|
||||
from weboob.capabilities.bank import Account, Currency
|
||||
from weboob.capabilities.base import NotAvailable
|
||||
from weboob.tools.browser import BasePage
|
||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||
|
|
@ -38,6 +38,7 @@ class AccountsList(BasePage):
|
|||
ids = set()
|
||||
for td in self.document.xpath('.//td[@nowrap="nowrap"]'):
|
||||
account = Account()
|
||||
account.currency = Currency.CUR_EUR
|
||||
link = td.xpath('.//a')[0]
|
||||
account._index = int(re.search('\d', link.attrib['href']).group(0))
|
||||
if not account._index in ids:
|
||||
|
|
@ -49,6 +50,5 @@ class AccountsList(BasePage):
|
|||
if linkbis.text == link.text:
|
||||
linkbis = self.document.xpath(urltofind)[1]
|
||||
account.balance = Decimal(FrenchTransaction.clean_amount(linkbis.text))
|
||||
account.currency = account.get_currency(linkbis.text)
|
||||
account.coming = NotAvailable
|
||||
yield account
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue