Updated twist job

This commit is contained in:
Eduard Urbach 2017-11-02 22:17:11 +01:00
parent 3f7d297a5f
commit 6ec1cd5692

View File

@ -18,10 +18,10 @@ func main() {
// Replace this with ID list from twist.moe later
twistAnime, err := twist.GetAnimeIndex()
arn.PanicOnError(err)
idList := twistAnime.KitsuIDs()
idList := arn.IDList(twistAnime.KitsuIDs())
// Save index in cache
arn.DB.Set("IDList", "animetwist index", idList)
arn.DB.Set("IDList", "animetwist index", &idList)
color.Yellow("Refreshing twist.moe links for %d anime", len(idList))