Improved anime lists

This commit is contained in:
2017-06-29 23:27:21 +02:00
parent 72087df11c
commit f648f19686
4 changed files with 41 additions and 4 deletions

View File

@ -4,6 +4,7 @@ import (
"net/http"
"github.com/aerogo/aero"
"github.com/animenotifier/arn"
"github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/utils"
)
@ -23,6 +24,7 @@ func Get(ctx *aero.Context) string {
}
animeList.Sort()
watchingList := animeList.SplitByStatus()[arn.AnimeListStatusWatching]
return utils.AllowEmbed(ctx, ctx.HTML(components.AnimeList(animeList, user)))
return utils.AllowEmbed(ctx, ctx.HTML(components.AnimeList(watchingList, user)))
}