want to output board description
This commit is contained in:
parent
d54f3ec21c
commit
2e93aaa9bc
@ -26,7 +26,10 @@ def output_board (data, destination):
|
|||||||
os.makedirs(destination)
|
os.makedirs(destination)
|
||||||
os.makedirs(os.path.join(destination, "threads"))
|
os.makedirs(os.path.join(destination, "threads"))
|
||||||
with open(os.path.join(destination, "index.json"), "w") as out_file:
|
with open(os.path.join(destination, "index.json"), "w") as out_file:
|
||||||
out_file.write(json.dumps({"title": data.title}, indent=4))
|
out_file.write(json.dumps({
|
||||||
|
"title": data.title,
|
||||||
|
"description": data.description
|
||||||
|
}, indent=4))
|
||||||
|
|
||||||
for thread in data.children:
|
for thread in data.children:
|
||||||
output_thread(thread, os.path.join(destination, "threads", thread.title))
|
output_thread(thread, os.path.join(destination, "threads", thread.title))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user