Fixed all imported stories with rpdata-as2storyimport being unlisted

This commit is contained in:
2018-07-07 13:57:31 +02:00
parent bae15de3e8
commit e0409a6635
+8
View File
@@ -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)
}
}