Fixed all imported stories with rpdata-as2storyimport being unlisted
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user