diff options
author | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-02-24 20:39:40 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-02-24 20:39:40 +0530 |
commit | e4f90575f920cbd429814dfc27a775c0666bf718 (patch) | |
tree | f9b72a743c2a79f532ddd655259d5207821fa9e4 /user | |
parent | 0f321b7c4691923ead42a9b020da98dce1196d07 (diff) |
error fix: refer to commit 58 in main
Diffstat (limited to 'user')
-rw-r--r-- | user/anime/animelist.go | 2 | ||||
-rw-r--r-- | user/anime/animelist.structs.go | 3 |
2 files changed, 2 insertions, 3 deletions
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 { |