Fix fints account type check (#106082)

This commit is contained in:
Benjamin Richter 2024-01-02 09:59:13 +01:00 committed by GitHub
parent 7396bc61d7
commit b27e830997
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 103 additions and 4 deletions

View file

@ -168,8 +168,8 @@ class FinTsClient:
if not account_information:
return False
if 1 <= account_information["type"] <= 9:
return True
if account_type := account_information.get("type"):
return 1 <= account_type <= 9
if (
account_information["iban"] in self.account_config
@ -188,8 +188,8 @@ class FinTsClient:
if not account_information:
return False
if 30 <= account_information["type"] <= 39:
return True
if account_type := account_information.get("type"):
return 30 <= account_type <= 39
if (
account_information["iban"] in self.holdings_config