Commit e55fdef9 authored by Maxime Pommier's avatar Maxime Pommier Committed by Romain Bignon

[ing] Add bdate

parent e58e0e60
......@@ -27,6 +27,7 @@ from weboob.browser import LoginBrowser, URL
from weboob.exceptions import BrowserIncorrectPassword, BrowserUnavailable, ActionNeeded
from weboob.browser.exceptions import ClientError
from import TransferBankError, TransferInvalidAmount
from import FrenchTransaction
from .api import (
LoginPage, AccountsPage, HistoryPage, ComingPage,
......@@ -259,6 +260,8 @@ class IngAPIBrowser(LoginBrowser):
for tr in
# transaction id is decreasing
first_transaction_id = int(tr._web_id)
if tr.type == FrenchTransaction.TYPE_CARD:
tr.bdate = tr.rdate
yield tr
# like website, add 1 to the last transaction id of the list to get next transactions page
......@@ -282,7 +285,10 @@ class IngAPIBrowser(LoginBrowser):
def get_api_coming(self, account):
"""iter coming on new website"""
for tr in
if tr.type == FrenchTransaction.TYPE_CARD:
tr.bdate = tr.rdate
yield tr
def iter_coming(self, account):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment