bpis first

main
Bel LaPointe 2023-10-25 14:30:57 -06:00
parent e8addb1836
commit 42b493c24d
1 changed files with 6 additions and 3 deletions

View File

@ -76,14 +76,17 @@ func main() {
register := deltas.Like(foolike...).Register()
if r.URL.Query().Get("bpi") != "" {
for date := range register {
register[date] = register[date].WithBPIs(bpis)
}
}
nameCurrencyDateValue := map[string]map[ledger.Currency]map[string]float64{}
dates := []string{}
names := []string{}
for date, balances := range register {
dates = append(dates, date)
if r.URL.Query().Get("bpi") != "" {
balances = balances.WithBPIs(bpis)
}
for name, balance := range balances {
names = append(names, name)
for currency, value := range balance {