changes made

This commit is contained in:
FM1337 2017-06-23 19:23:09 -03:00
parent 2df677c46c
commit ffaf370342

View File

@ -7,6 +7,9 @@ import (
"github.com/fatih/color"
)
const maxPopularAnime = 10
// Note this is using the airing-anime as a template with modfications
// made to it.
func main() {
@ -29,8 +32,9 @@ func main() {
sort.Slice(animeList, func(i, j int) bool {
return animeList[i].Rating.Overall > animeList[j].Rating.Overall
})
// Change size of anime list to 10
animeList = animeList[:10]
animeList = animeList[:maxPopularAnime]
// Convert to small anime list
cache := &arn.ListOfIDs{}