From e0409a663557fdd8cac86510c14605e5f5aaed19 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Sat, 7 Jul 2018 13:57:31 +0200 Subject: [PATCH] Fixed all imported stories with rpdata-as2storyimport being unlisted --- cmd/rpdata-as2storyimport/main.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/rpdata-as2storyimport/main.go b/cmd/rpdata-as2storyimport/main.go index 23b6f82..bbd6199 100644 --- a/cmd/rpdata-as2storyimport/main.go +++ b/cmd/rpdata-as2storyimport/main.go @@ -101,6 +101,14 @@ func main() { log.Fatalln(err) } + if !result.Unlisted { + listed := true + err := story.Edit(nil, nil, &listed, nil, nil) + if err != nil { + log.Fatalln(err) + } + } + fmt.Println(result.ID, "->", story.ID, chapter.ID) } }