Removed dropped entries from schedule
This commit is contained in:
parent
355ec3202b
commit
9c0518c278
@ -46,6 +46,8 @@ func dashboard(ctx *aero.Context) string {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
animeList = animeList.WatchingAndPlanned()
|
||||||
|
|
||||||
var keys []string
|
var keys []string
|
||||||
|
|
||||||
for _, item := range animeList.Items {
|
for _, item := range animeList.Items {
|
||||||
|
@ -4,7 +4,6 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/aerogo/aero"
|
"github.com/aerogo/aero"
|
||||||
"github.com/animenotifier/arn"
|
|
||||||
"github.com/animenotifier/notify.moe/components"
|
"github.com/animenotifier/notify.moe/components"
|
||||||
"github.com/animenotifier/notify.moe/utils"
|
"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)
|
return ctx.Error(http.StatusNotFound, "Anime list not found", nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
animeList.Sort()
|
watchingList := animeList.WatchingAndPlanned()
|
||||||
watchingList := animeList.SplitByStatus()[arn.AnimeListStatusWatching]
|
watchingList.Sort()
|
||||||
|
|
||||||
return utils.AllowEmbed(ctx, ctx.HTML(components.AnimeList(watchingList, animeList.User(), user)))
|
return utils.AllowEmbed(ctx, ctx.HTML(components.AnimeList(watchingList, animeList.User(), user)))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user