bpis to period as well
All checks were successful
cicd / ci (push) Successful in 2m29s

This commit is contained in:
Bel LaPointe
2026-01-28 09:53:04 -07:00
parent 49b7bd2f85
commit 0eb0abf4a8

View File

@@ -6,6 +6,7 @@ import (
"flag" "flag"
"fmt" "fmt"
"io" "io"
"maps"
"math" "math"
"os" "os"
"os/signal" "os/signal"
@@ -100,6 +101,14 @@ func Main() {
panic(err) panic(err)
} }
bpis = b bpis = b
if period := config.Query.Period; !period.Empty() {
before := period.Stop.Format("2006-01-02")
for _, timeToValue := range bpis {
maps.DeleteFunc(timeToValue, func(k string, _ float64) bool {
return k > before
})
}
}
} }
cpiNormalizer := ana.NewNormalizer() cpiNormalizer := ana.NewNormalizer()