Updated ratings job

This commit is contained in:
Eduard Urbach 2018-03-27 12:36:32 +02:00
parent 84f255f66b
commit ff80d6d336

View File

@ -5,7 +5,7 @@ import (
"github.com/fatih/color"
)
var ratings = map[string][]*arn.AnimeRating{}
var ratings = map[string][]arn.AnimeListItemRating{}
var finalRating = map[string]*arn.AnimeRating{}
var popularity = map[string]*arn.AnimePopularity{}
@ -120,7 +120,7 @@ func extractRatings(animeList *arn.AnimeList) {
_, found := ratings[item.AnimeID]
if !found {
ratings[item.AnimeID] = []*arn.AnimeRating{}
ratings[item.AnimeID] = []arn.AnimeListItemRating{}
finalRating[item.AnimeID] = &arn.AnimeRating{}
}