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