Get Anime cached

This commit is contained in:
daru
2022-04-15 21:54:51 +02:00
parent c59d1ba68b
commit 6ba9176ca7
4 changed files with 24 additions and 9 deletions

View File

@@ -185,7 +185,7 @@ func WatchPost(ctx *fasthttp.RequestCtx) {
}
// iterate sent animes
for _, anime := range animes {
for i, anime := range animes {
// check if anime is in season
_, err = SearchSeason(anime.Anime)
if err == nil {
@@ -195,8 +195,7 @@ func WatchPost(ctx *fasthttp.RequestCtx) {
addErrorToCtx(ctx, err)
return
}
anime.Users = animeData.Users
fmt.Printf("%+v\n", anime)
animes[i].Users = animeData.Users
}
// TODO