support currencies
This commit is contained in:
parent
636c5c4bd5
commit
d91dad2b2b
17 changed files with 95 additions and 30 deletions
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
from decimal import Decimal
|
||||
import datetime
|
||||
import re
|
||||
|
||||
from weboob.capabilities.bank import Transaction
|
||||
from weboob.capabilities import NotAvailable
|
||||
|
|
@ -40,8 +41,8 @@ class FrenchTransaction(Transaction):
|
|||
"""
|
||||
Clean a string containing an amount.
|
||||
"""
|
||||
return text.replace(' ', '').replace('.','').replace(u'\xa0', '') \
|
||||
.replace(',','.').strip(u' \t\u20ac\xa0\x80€\n\rEUR')
|
||||
text = text.replace('.','').replace(',','.')
|
||||
return re.sub(u'[^\d\-\.]', '', text)
|
||||
|
||||
def set_amount(self, credit='', debit=''):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue