Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect behavior of archive argument in LegacyWrapper.scan_postbox #73

Open
maresb opened this issue Dec 1, 2024 · 0 comments
Open

Comments

@maresb
Copy link
Contributor

maresb commented Dec 1, 2024

With #72 applied, I observe strange behavior regarding the archive and download_all arguments. There are four cases. (In all four cases I set prepend_date=True. I haven't had a chance to debug this.

If I set archive=False and download_all=False I get:

old_document_dic = lw.scan_postbox(
    "old-postbox", download_all=False, archive=False, prepend_date=True
)

{'Mitteilungen': {'name': 'Mitteilungen',
  'details': 'https://www.ib.dkb.de/ssohl/banking/postfach/ordner?$event=gotoFolder&folderNameOrId=%24inbox',
  'documents': {}},
 'Vertragsinformationen': {'name': 'Vertragsinformationen',
  'details': 'https://www.ib.dkb.de/ssohl/banking/postfach/ordner?$event=gotoFolder&folderNameOrId=%24vertragsinformationen',
  'documents': {}},
 'Kontoauszüge': {'name': 'Kontoauszüge',
  'details': 'https://www.ib.dkb.de/ssohl/banking/postfach/ordner?$event=gotoFolder&folderNameOrId=%24kontoauszuege',
  'documents': {}},
 'Kreditkartenabrechnungen': {'name': 'Kreditkartenabrechnungen',
  'details': 'https://www.ib.dkb.de/ssohl/banking/postfach/ordner?$event=gotoFolder&folderNameOrId=%24kreditkartenabrechnungen',
  'documents': {}},
 'Wertpapierdokumente': {'name': 'Wertpapierdokumente',
  'details': 'https://www.ib.dkb.de/ssohl/banking/postfach/ordner?$event=gotoFolder&folderNameOrId=%24wertpapierdokumente',
  'documents': {}},
 'Steuerbescheinigungen': {'name': 'Steuerbescheinigungen',
  'details': 'https://www.ib.dkb.de/ssohl/banking/postfach/ordner?$event=gotoFolder&folderNameOrId=%24steuerbescheinigungen',
  'documents': {}},
 'Archiv': {'name': 'Archiv',
  'details': 'https://www.ib.dkb.de/ssohl/banking/postfach/ordner?$event=gotoFolder&folderNameOrId=archiv',
  'documents': {}},
 'Tresor': {'name': 'Tresor',
  'details': 'https://www.ib.dkb.de/ssohl/banking/postfach/ordner?$event=gotoFolder&folderNameOrId=tresor',
  'documents': {}}}

If I set archive=True and download_all=False I get the first page of 10 documents in my Archiv.

If I set archive=True and download_all=True I get the first page of 10 documents in my Archiv, but without downloading.

Setting archive=False and download_all=True it downloads all documents including from my Archiv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant