Improved patch

This commit is contained in:
Eduard Urbach 2019-10-10 14:48:32 +09:00
parent 4748c72eb6
commit 3a77455422
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -7,9 +7,10 @@ import (
func main() {
color.Yellow("Fixing non-existing anime relations")
defer color.Green("Finished.")
defer arn.Node.Close()
count := 0
for anime := range arn.StreamAnime() {
relations := anime.Relations()
@ -19,6 +20,9 @@ func main() {
}
relations.Save()
count++
}
}
color.Green("Finished adding %d anime relations objects.", count)
}