diff --git a/modules/boursorama/pages.py b/modules/boursorama/pages.py index 36ed95f45451555c475610bca072ad05cae81bcd..df6f93de6a9398de52785e10ce7a4d62a20c2fbc 100644 --- a/modules/boursorama/pages.py +++ b/modules/boursorama/pages.py @@ -48,7 +48,7 @@ from weboob.capabilities.profile import Person from weboob.tools.capabilities.bank.transactions import FrenchTransaction from weboob.tools.capabilities.bank.iban import is_iban_valid -from weboob.tools.capabilities.bank.investments import IsinCode +from weboob.tools.capabilities.bank.investments import IsinCode, IsinType from weboob.tools.value import Value from weboob.tools.date import parse_french_date from weboob.tools.compat import urljoin, urlencode, urlparse, range @@ -891,9 +891,10 @@ class item(ItemElement): klass = Investment obj_label = CleanText(TableCell('label')) - obj_code = CleanText(TableCell('code')) - obj_unitvalue = CleanDecimal(TableCell('unitvalue'), replace_dots=True) - obj_quantity = CleanDecimal(TableCell('quantity'), replace_dots=True) + obj_code = IsinCode(CleanText(TableCell('code'))) + obj_code_type = IsinType(CleanText(TableCell('code'))) + obj_unitvalue = CleanDecimal.French(TableCell('unitvalue')) + obj_quantity = CleanDecimal.SI(TableCell('quantity')) obj_valuation = Eval(lambda x, y: x * y, Field('quantity'), Field('unitvalue')) obj_vdate = Date(CleanText(TableCell('vdate')), dayfirst=True)