Fixed benchmarks

This commit is contained in:
2018-10-29 13:47:13 +09:00
parent c090b6970c
commit 7e07923177
2 changed files with 4 additions and 24 deletions

View File

@ -1,20 +0,0 @@
package main
import (
"github.com/animenotifier/arn"
"github.com/fatih/color"
)
func main() {
color.Yellow("Updating post structure")
defer color.Green("Finished.")
defer arn.Node.Close()
// Iterate over the stream
for post := range arn.StreamPosts() {
post.ParentID = post.ThreadID
post.ParentType = "Thread"
post.Save()
}
}