15 lines
359 B
Go
Raw Normal View History

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