at least round both wrong
cicd / ci (push) Failing after 15s Details

main
Bel LaPointe 2025-05-23 22:02:27 -06:00
parent 9cf8cb0736
commit 847cd736b6
1 changed files with 4 additions and 1 deletions

View File

@ -248,7 +248,10 @@ func Main() {
inDay := func(date string, transaction bank.Transaction) bool { inDay := func(date string, transaction bank.Transaction) bool {
return slices.ContainsFunc(byDate[date], func(d ledger.Delta) 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
}) })
} }