Added ratings reset tool
This commit is contained in:
parent
ef971ba6fb
commit
78c2172385
20
patches/reset-animelist-ratings/reset-animelist-ratings.go
Normal file
20
patches/reset-animelist-ratings/reset-animelist-ratings.go
Normal file
@ -0,0 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
defer arn.Node.Close()
|
||||
|
||||
animeList, err := arn.GetAnimeList("3eoFUr_zg")
|
||||
arn.PanicOnError(err)
|
||||
|
||||
animeList.Lock()
|
||||
for _, item := range animeList.Items {
|
||||
item.Rating.Overall = 0
|
||||
}
|
||||
animeList.Unlock()
|
||||
|
||||
animeList.Save()
|
||||
}
|
Loading…
Reference in New Issue
Block a user