From 9c0518c278ad25926f6ca163e949d7ce17abaea4 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sat, 1 Jul 2017 13:45:23 +0200 Subject: [PATCH] Removed dropped entries from schedule --- pages/dashboard/dashboard.go | 2 ++ pages/embed/embed.go | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/dashboard/dashboard.go b/pages/dashboard/dashboard.go index 1b68a404..cdb780a3 100644 --- a/pages/dashboard/dashboard.go +++ b/pages/dashboard/dashboard.go @@ -46,6 +46,8 @@ func dashboard(ctx *aero.Context) string { return } + animeList = animeList.WatchingAndPlanned() + var keys []string for _, item := range animeList.Items { diff --git a/pages/embed/embed.go b/pages/embed/embed.go index 483c3430..7a3ffd57 100644 --- a/pages/embed/embed.go +++ b/pages/embed/embed.go @@ -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))) }