do not override rdate with operation date

This commit is contained in:
Romain Bignon 2014-04-29 17:19:24 +02:00
commit 237cfb9252

View file

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