fix parsing of ISIN code for market accounts
This commit is contained in:
parent
9d2996b82a
commit
0868c5e9fc
1 changed files with 1 additions and 2 deletions
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
from decimal import Decimal
|
||||
|
||||
from weboob.capabilities.base import NotAvailable
|
||||
from weboob.capabilities.bank import Investment
|
||||
from weboob.browser.pages import RawPage, HTMLPage, LoggedPage
|
||||
from weboob.browser.elements import ListElement, ItemElement, method
|
||||
|
|
@ -46,7 +45,7 @@ class TitrePage(LoggedPage, RawPage):
|
|||
_id = columns[0].split('{')[2]
|
||||
invest = Investment(_id)
|
||||
invest.label = unicode(columns[0].split('{')[-1])
|
||||
invest.code = NotAvailable
|
||||
invest.code = _id.split(':')[0]
|
||||
if ':' in _id:
|
||||
invest.description = unicode(_id.split(':')[1])
|
||||
invest.quantity = Decimal(FrenchTransaction.clean_amount(columns[1]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue