Browse Source

Fixed all imported stories with rpdata-as2storyimport being unlisted

1.0
Gisle Aune 6 years ago
parent
commit
e0409a6635
  1. 8
      cmd/rpdata-as2storyimport/main.go

8
cmd/rpdata-as2storyimport/main.go

@ -101,6 +101,14 @@ func main() {
log.Fatalln(err) 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) fmt.Println(result.ID, "->", story.ID, chapter.ID)
} }
} }

Loading…
Cancel
Save