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