Skip to content

Commit

Permalink
tlh: bug in wash sale (31 vs 30 days)
Browse files Browse the repository at this point in the history
  • Loading branch information
redstreet committed May 12, 2022
1 parent 079865a commit 5a85869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fava_investor/modules/tlh/libtlh.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def query_recently_bought(ticker, accapi, options):
cost(sum(position)) as basis
WHERE
number > 0 AND
date >= DATE_ADD(TODAY(), -31) AND
date >= DATE_ADD(TODAY(), -30) AND
currency = "{ticker}"
{wash_pattern_sql}
GROUP BY {account_field},date,earliest_sale
Expand Down

0 comments on commit 5a85869

Please sign in to comment.