bpis first
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user