Skip to content

Commit

Permalink
fixup! Dates unify (ISO) and logic clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
akantak committed Apr 29, 2024
1 parent 7455491 commit 8ce9a0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/etrade_tax_poland/dividends.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def get_stock_dividend_from_text(text):

if "Qualified" in dividend_lines[0]:
# latest 2023 doc version
year = year_line.split()[-1]
pay_date = f"{dividend_lines[0].split()[0]}/{year}"
str_date = f"{dividend_lines[0].split()[0]}/{year_line.split()[-1]}"
pay_date = datetime.strptime(str_date, "%m/%d/%Y")
gross = dividend_lines[0].split()[-1].replace("$", "")
tax = dividend_lines[1].split()[-1][1:-1]
net = dividend_lines[2].split()[-1][1:-1]
Expand Down

0 comments on commit 8ce9a0b

Please sign in to comment.