Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
weboob
weboob
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 177
    • Issues 177
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 52
    • Merge Requests 52
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • weboob
  • weboobweboob
  • Issues
  • #277

Closed
Open
Opened Jun 17, 2019 by Nicolas Cedilnik@nicoco
  • Report abuse
  • New issue
Report abuse New issue

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?

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: weboob/weboob#277