Disabled backlog script
This commit is contained in:
parent
d90d20f230
commit
4d5dd97da4
@ -1,33 +1,27 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
|
||||||
"fmt"
|
|
||||||
|
|
||||||
"github.com/animenotifier/arn"
|
|
||||||
)
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
defer arn.Node.Close()
|
// defer arn.Node.Close()
|
||||||
|
|
||||||
for track := range arn.StreamSoundTracks() {
|
// for track := range arn.StreamSoundTracks() {
|
||||||
if track.Created > "2018-03-09" {
|
// if track.Created > "2018-03-09" {
|
||||||
continue
|
// continue
|
||||||
}
|
// }
|
||||||
|
|
||||||
fmt.Println(track.Created, track.Title)
|
// fmt.Println(track.Created, track.Title)
|
||||||
logEntry := arn.NewEditLogEntry(track.CreatedBy, "create", "SoundTrack", track.ID, "", "", "")
|
// logEntry := arn.NewEditLogEntry(track.CreatedBy, "create", "SoundTrack", track.ID, "", "", "")
|
||||||
logEntry.Created = track.Created
|
// logEntry.Created = track.Created
|
||||||
logEntry.Save()
|
// logEntry.Save()
|
||||||
}
|
// }
|
||||||
|
|
||||||
for quote := range arn.StreamQuotes() {
|
// for quote := range arn.StreamQuotes() {
|
||||||
if quote.Created > "2018-03-09" {
|
// if quote.Created > "2018-03-09" {
|
||||||
continue
|
// continue
|
||||||
}
|
// }
|
||||||
|
|
||||||
fmt.Println(quote.Created, quote.Text.English)
|
// fmt.Println(quote.Created, quote.Text.English)
|
||||||
logEntry := arn.NewEditLogEntry(quote.CreatedBy, "create", "Quote", quote.ID, "", "", "")
|
// logEntry := arn.NewEditLogEntry(quote.CreatedBy, "create", "Quote", quote.ID, "", "", "")
|
||||||
logEntry.Created = quote.Created
|
// logEntry.Created = quote.Created
|
||||||
logEntry.Save()
|
// logEntry.Save()
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user