at least round both wrong
Some checks failed
cicd / ci (push) Failing after 15s

This commit is contained in:
Bel LaPointe
2025-05-23 22:02:27 -06:00
parent 9cf8cb0736
commit 847cd736b6

View File

@@ -248,7 +248,10 @@ func Main() {
inDay := func(date string, transaction bank.Transaction) bool {
return slices.ContainsFunc(byDate[date], func(d ledger.Delta) bool {
return d.Value == transaction.Amount || -1.0*d.Value == transaction.Amount
v := fmt.Sprintf("%.2f", d.Value)
nv := fmt.Sprintf("%.2f", -1.0*d.Value)
a := fmt.Sprintf("%.2f", transaction.Amount)
return v == a || nv == a
})
}