do not override rdate with operation date
This commit is contained in:
parent
2256dc841b
commit
237cfb9252
1 changed files with 1 additions and 3 deletions
|
|
@ -21,7 +21,6 @@
|
||||||
from lxml.html import etree
|
from lxml.html import etree
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
import re
|
import re
|
||||||
import datetime
|
|
||||||
|
|
||||||
from weboob.capabilities.bank import Account
|
from weboob.capabilities.bank import Account
|
||||||
from weboob.tools.browser import BasePage, BrowserIncorrectPassword
|
from weboob.tools.browser import BasePage, BrowserIncorrectPassword
|
||||||
|
|
@ -74,8 +73,7 @@ class AccountHistoryPage(BasePage):
|
||||||
label = re.sub(r'[ \xa0]+', ' ', label).strip()
|
label = re.sub(r'[ \xa0]+', ' ', label).strip()
|
||||||
amount = tables[i].xpath("./td[5]/text() | ./td[6]/text()")
|
amount = tables[i].xpath("./td[5]/text() | ./td[6]/text()")
|
||||||
|
|
||||||
operation.parse(date=date_val, raw=label)
|
operation.parse(date=date_oper, raw=label, vdate=date_val)
|
||||||
operation.rdate = datetime.datetime.strptime(date_oper,"%d/%m/%Y")
|
|
||||||
|
|
||||||
if amount[1] == u'\xa0':
|
if amount[1] == u'\xa0':
|
||||||
amount = amount[0]
|
amount = amount[0]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue