Cleanup
This commit is contained in:
@ -1,17 +0,0 @@
|
||||
package main
|
||||
|
||||
import "github.com/animenotifier/arn"
|
||||
|
||||
func main() {
|
||||
defer arn.Node.Close()
|
||||
|
||||
for post := range arn.StreamPosts() {
|
||||
post.CreatedBy = post.AuthorID
|
||||
post.Save()
|
||||
}
|
||||
|
||||
for thread := range arn.StreamThreads() {
|
||||
thread.CreatedBy = thread.AuthorID
|
||||
thread.Save()
|
||||
}
|
||||
}
|
@ -31,7 +31,7 @@ func main() {
|
||||
user.Accounts.Facebook.ID = ""
|
||||
user.Accounts.Google.ID = ""
|
||||
user.AgeRange = arn.UserAgeRange{}
|
||||
user.Location = arn.Location{}
|
||||
user.Location = &arn.Location{}
|
||||
|
||||
user.PushSubscriptions().Items = []*arn.PushSubscription{}
|
||||
user.PushSubscriptions().Save()
|
||||
|
@ -1,23 +1,18 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/fatih/color"
|
||||
)
|
||||
|
||||
func main() {
|
||||
color.Yellow("Moving Kitsu IDs to new IDs")
|
||||
// color.Yellow("Moving Kitsu IDs to new IDs")
|
||||
|
||||
defer color.Green("Finished.")
|
||||
defer arn.Node.Close()
|
||||
// defer color.Green("Finished.")
|
||||
// defer arn.Node.Close()
|
||||
|
||||
for anime := range arn.StreamAnime() {
|
||||
kitsuID := anime.GetMapping("kitsu/anime")
|
||||
// for anime := range arn.StreamAnime() {
|
||||
// kitsuID := anime.GetMapping("kitsu/anime")
|
||||
|
||||
if kitsuID == "" {
|
||||
continue
|
||||
}
|
||||
// if kitsuID == "" {
|
||||
// continue
|
||||
// }
|
||||
|
||||
anime.MoveImageFiles(kitsuID, anime.ID)
|
||||
}
|
||||
// anime.MoveImageFiles(kitsuID, anime.ID)
|
||||
// }
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ func main() {
|
||||
for post := range arn.StreamPosts() {
|
||||
// Fix text
|
||||
color.Yellow(post.Text)
|
||||
post.Text = autocorrect.FixPostText(post.Text)
|
||||
post.Text = autocorrect.PostText(post.Text)
|
||||
color.Green(post.Text)
|
||||
|
||||
// Tags
|
||||
|
Reference in New Issue
Block a user