Improved patch
This commit is contained in:
parent
4748c72eb6
commit
3a77455422
@ -7,9 +7,10 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
color.Yellow("Fixing non-existing anime relations")
|
color.Yellow("Fixing non-existing anime relations")
|
||||||
defer color.Green("Finished.")
|
|
||||||
defer arn.Node.Close()
|
defer arn.Node.Close()
|
||||||
|
|
||||||
|
count := 0
|
||||||
|
|
||||||
for anime := range arn.StreamAnime() {
|
for anime := range arn.StreamAnime() {
|
||||||
relations := anime.Relations()
|
relations := anime.Relations()
|
||||||
|
|
||||||
@ -19,6 +20,9 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
relations.Save()
|
relations.Save()
|
||||||
|
count++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
color.Green("Finished adding %d anime relations objects.", count)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user