wip
parent
6c31005d24
commit
74e6b77a22
|
|
@ -46,8 +46,13 @@ func NewContributionPredictor(reg ledger.Register) Predictor {
|
||||||
}
|
}
|
||||||
|
|
||||||
func getMonthlyContributionRate(reg ledger.Register) map[string]ledger.Balance {
|
func getMonthlyContributionRate(reg ledger.Register) map[string]ledger.Balance {
|
||||||
|
contributions := getRecentContributions(reg)
|
||||||
|
result := make(map[string]ledger.Balance)
|
||||||
|
for name := range contributions {
|
||||||
panic(nil)
|
panic(nil)
|
||||||
}
|
}
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
func getRecentContributions(reg ledger.Register) map[string][]ledger.Balance {
|
func getRecentContributions(reg ledger.Register) map[string][]ledger.Balance {
|
||||||
return getContributions(reg.Between(time.Now().Add(-1*time.Hour*365/2), time.Now()))
|
return getContributions(reg.Between(time.Now().Add(-1*time.Hour*365/2), time.Now()))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue