bel 2023-10-26 20:14:16 -06:00
parent 6c31005d24
commit 74e6b77a22
1 changed files with 6 additions and 1 deletions

View File

@ -46,8 +46,13 @@ func NewContributionPredictor(reg ledger.Register) Predictor {
}
func getMonthlyContributionRate(reg ledger.Register) map[string]ledger.Balance {
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 {
return getContributions(reg.Between(time.Now().Add(-1*time.Hour*365/2), time.Now()))