21 lines
308 B
Go
Raw Normal View History

2018-03-22 19:15:21 +00:00
package filteranime
import (
"github.com/aerogo/aero"
"github.com/animenotifier/arn"
)
const maxGenreEntries = 70
// Genres ...
func Genres(ctx *aero.Context) string {
2018-03-22 21:26:52 +00:00
return editorList(
ctx,
"Anime without genres",
2018-03-22 21:26:52 +00:00
func(anime *arn.Anime) bool {
return len(anime.Genres) == 0
},
nil,
2018-03-22 21:26:52 +00:00
)
}