Skip to content

Commit

Permalink
Merge pull request #9 from terose73/patch-1
Browse files Browse the repository at this point in the history
Update _get_account_id to ignore non-brokerage accounts.
  • Loading branch information
MaxxRK authored May 28, 2024
2 parents 8742c45 + 9a1910a commit 413f5c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vanguard/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _get_account_id(self, selector):
string: account_id
"""
account_id = selector.query_selector("span > span > span > span").inner_text()
if len(account_fields := account_id.split("—")) == 3:
if len(account_fields := account_id.split("—")) == 3 and ("brokerage" in account_fields[1].lower()):
return account_fields[2].strip().replace("*", "")
return None

Expand Down

0 comments on commit 413f5c1

Please sign in to comment.