Set replace_dots everywhere
The goal is to change the default value in CleanDecimal
This commit is contained in:
parent
e448fb9459
commit
a434f33a61
10 changed files with 16 additions and 17 deletions
|
|
@ -53,8 +53,7 @@ class AvoirPage(LoggedPage, HTMLPage):
|
|||
|
||||
obj_id = CleanText(TableCell('name'))
|
||||
obj_label = CleanText(TableCell('name'))
|
||||
#obj_coming = CleanDecimal(TableCell('value'))
|
||||
obj_balance = CleanDecimal(TableCell('value'))
|
||||
obj_balance = CleanDecimal(TableCell('value'), replace_dots=True)
|
||||
obj_currency = CleanText(u'//table[@summary="Liste des échéances"]/thead/tr/th/small/text()')
|
||||
obj_type = Account.TYPE_UNKNOWN
|
||||
|
||||
|
|
@ -80,7 +79,7 @@ class OperationsFuturesPage(LoggedPage, HTMLPage):
|
|||
obj_date = Date(CleanText(TableCell('date')), LinearDateGuesser())
|
||||
obj_type = Transaction.TYPE_UNKNOWN
|
||||
obj_label = CleanText(TableCell('operation'))
|
||||
obj_amount = CleanDecimal(TableCell('montant'))
|
||||
obj_amount = CleanDecimal(TableCell('montant'), replace_dots=True)
|
||||
|
||||
|
||||
class OperationsTraiteesPage(LoggedPage, HTMLPage):
|
||||
|
|
@ -102,4 +101,4 @@ class OperationsTraiteesPage(LoggedPage, HTMLPage):
|
|||
obj_date = Date(CleanText(TableCell('date')), LinearDateGuesser())
|
||||
obj_type = Transaction.TYPE_UNKNOWN
|
||||
obj_label = CleanText(TableCell('operation'))
|
||||
obj_amount = CleanDecimal(TableCell('montant'))
|
||||
obj_amount = CleanDecimal(TableCell('montant'), replace_dots=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue