Fix fints account type check (#106082)
This commit is contained in:
parent
7396bc61d7
commit
b27e830997
4 changed files with 103 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue