2017-07-07 00:07:34 +00:00
|
|
|
package statistics
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/aerogo/aero"
|
|
|
|
"github.com/animenotifier/arn"
|
|
|
|
"github.com/animenotifier/notify.moe/components"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Get ...
|
|
|
|
func Get(ctx *aero.Context) string {
|
2017-07-07 10:10:27 +00:00
|
|
|
statistics := arn.StatisticsCategory{}
|
|
|
|
arn.DB.GetObject("Cache", "user statistics", &statistics)
|
|
|
|
return ctx.HTML(components.Statistics(statistics.PieCharts...))
|
2017-07-07 00:07:34 +00:00
|
|
|
}
|