From 74e6b77a229ac2d3ad2a48b947e319086a33c59a Mon Sep 17 00:00:00 2001 From: bel Date: Thu, 26 Oct 2023 20:14:16 -0600 Subject: [PATCH] wip --- ana/predictor.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ana/predictor.go b/ana/predictor.go index f2d4812..93ecbca 100644 --- a/ana/predictor.go +++ b/ana/predictor.go @@ -46,7 +46,12 @@ func NewContributionPredictor(reg ledger.Register) Predictor { } func getMonthlyContributionRate(reg ledger.Register) map[string]ledger.Balance { - panic(nil) + contributions := getRecentContributions(reg) + result := make(map[string]ledger.Balance) + for name := range contributions { + panic(nil) + } + return result } func getRecentContributions(reg ledger.Register) map[string][]ledger.Balance {