bpis first
parent
e8addb1836
commit
42b493c24d
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue