From c992509c40d00529d845a8866c32b44eae7e6aa4 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Fri, 27 Oct 2023 19:15:55 -0600 Subject: [PATCH] fix reg in ui --- cmd/clitest/main.go | 6 ++++++ todo.yaml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cmd/clitest/main.go b/cmd/clitest/main.go index 067a637..90a85ed 100644 --- a/cmd/clitest/main.go +++ b/cmd/clitest/main.go @@ -223,6 +223,12 @@ func main() { } series[i] = int(lastValue - prevValue) } + for i := range series { // TODO no prior so no delta + if series[i] != 0 { + series[i] = 0 + break + } + } key := fmt.Sprintf("%s (%s)", name, currency) if slices.Min(series) != 0 || slices.Max(series) != 0 { chart.AddY(key, series) diff --git a/todo.yaml b/todo.yaml index 3cc12f9..c718548 100755 --- a/todo.yaml +++ b/todo.yaml @@ -1,8 +1,8 @@ todo: - ?prediction=contributions=x y z&prediction=contribution=x y z -- ana/predictor for bpi or de-legacy - predictWhatIf=2023-10=AssetAccount:Cash=$=-7000 changes too much when removing 7k from prinicple +- ana/predictor for bpi or de-legacy - html version can accept new transactions for moolah scheduled: [] done: