From e4f90575f920cbd429814dfc27a775c0666bf718 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 24 Feb 2022 20:39:40 +0530 Subject: error fix: refer to commit 58 in main --- user/anime/animelist.go | 2 +- user/anime/animelist.structs.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'user/anime') diff --git a/user/anime/animelist.go b/user/anime/animelist.go index 6516184..b27efc0 100644 --- a/user/anime/animelist.go +++ b/user/anime/animelist.go @@ -77,7 +77,7 @@ func (c Client) GetAnimeList(user, status, sort string, limit, offset int) (a.An var animes []a.Anime for _, element := range animeListData.Data { a := element.Anime - a.MyListStatus = element.ListStatus + a.ListStatus = element.ListStatus animes = append(animes, a) } diff --git a/user/anime/animelist.structs.go b/user/anime/animelist.structs.go index 31296fa..80eb01a 100644 --- a/user/anime/animelist.structs.go +++ b/user/anime/animelist.structs.go @@ -17,7 +17,6 @@ package anime import ( - "github.com/MikunoNaka/MAL2Go/util" "github.com/MikunoNaka/MAL2Go/anime" ) @@ -26,7 +25,7 @@ type AnimeListRaw struct { Anime anime.Anime `json:"node"` ListStatus anime.ListStatus `json:"list_status"` } `json:"data"` - Paging util.ListPaging `json:"paging"` + Paging anime.ListPaging `json:"paging"` } type UpdateAnimeData struct { -- cgit v1.2.3