From 4d5dd97da4212d97867db00acb29e7e32d27e2fd Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sat, 10 Mar 2018 13:23:56 +0100 Subject: [PATCH] Disabled backlog script --- patches/backlog/backlog.go | 44 ++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/patches/backlog/backlog.go b/patches/backlog/backlog.go index 8801db43..fa6aaa2b 100644 --- a/patches/backlog/backlog.go +++ b/patches/backlog/backlog.go @@ -1,33 +1,27 @@ package main -import ( - "fmt" - - "github.com/animenotifier/arn" -) - func main() { - defer arn.Node.Close() + // defer arn.Node.Close() - for track := range arn.StreamSoundTracks() { - if track.Created > "2018-03-09" { - continue - } + // for track := range arn.StreamSoundTracks() { + // if track.Created > "2018-03-09" { + // continue + // } - fmt.Println(track.Created, track.Title) - logEntry := arn.NewEditLogEntry(track.CreatedBy, "create", "SoundTrack", track.ID, "", "", "") - logEntry.Created = track.Created - logEntry.Save() - } + // fmt.Println(track.Created, track.Title) + // logEntry := arn.NewEditLogEntry(track.CreatedBy, "create", "SoundTrack", track.ID, "", "", "") + // logEntry.Created = track.Created + // logEntry.Save() + // } - for quote := range arn.StreamQuotes() { - if quote.Created > "2018-03-09" { - continue - } + // for quote := range arn.StreamQuotes() { + // if quote.Created > "2018-03-09" { + // continue + // } - fmt.Println(quote.Created, quote.Text.English) - logEntry := arn.NewEditLogEntry(quote.CreatedBy, "create", "Quote", quote.ID, "", "", "") - logEntry.Created = quote.Created - logEntry.Save() - } + // fmt.Println(quote.Created, quote.Text.English) + // logEntry := arn.NewEditLogEntry(quote.CreatedBy, "create", "Quote", quote.ID, "", "", "") + // logEntry.Created = quote.Created + // logEntry.Save() + // } }