weboob.iter_history(account1) returns transactions from another account
I am trying to list the transactions for all my accounts using:
from weboob.core import Weboob
from weboob.capabilities.bank import CapBank
weboob = Weboob()
weboob.load_backends(CapBank)
for account in weboob.iter_accounts():
print(account)
for transaction in weboob.iter_history(account):
print(transaction)
This used to work just fine for me when I only had a caissedepargne
account. Now I have added a creditcooperatif
account. When I try to list transactions from this new account, transaction from my other "compte de dépot" are listed after:
<Account id='redacted' label='COMPTE DE DEPOT'>
[...]
<Transaction date=date(2019, 4, 17) label='Monoprix' amount=Decimal('-29.07')>
<Transaction date=date(2019, 6, 13) label='Cotisation Forfait Liberte' amount=Decimal('-17.25')>
<Transaction date=date(2019, 6, 13) label='Remise Services Bouquet Libe' amount=Decimal('0.14')>
[...]
<Account id='redacted' label='CPT DEPOT PART.'>
<Transaction date=date(2019, 6, 13) label='Cotisation Forfait Liberte' amount=Decimal('-17.25')>
<Transaction date=date(2019, 6, 13) label='Remise Services Bouquet Libe' amount=Decimal('0.14')>
[...]
This only happens when I try to use the weboob API, not when I use the boobank
console. Am I doing something wrong or is that a bug?