fix parsing of ISIN code for market accounts

This commit is contained in:
Romain Bignon 2015-05-22 15:43:32 +02:00
commit 0868c5e9fc

View file

@ -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]))