Removed dropped entries from schedule

This commit is contained in:
Eduard Urbach 2017-07-01 13:45:23 +02:00
parent 355ec3202b
commit 9c0518c278
2 changed files with 4 additions and 3 deletions

View File

@ -46,6 +46,8 @@ func dashboard(ctx *aero.Context) string {
return
}
animeList = animeList.WatchingAndPlanned()
var keys []string
for _, item := range animeList.Items {

View File

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