need to quote key
This commit is contained in:
@@ -16,7 +16,7 @@ def output_forum (data, destination):
|
|||||||
os.makedirs(destination)
|
os.makedirs(destination)
|
||||||
|
|
||||||
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}, indent=4))
|
||||||
|
|
||||||
for category in data.categories:
|
for category in data.categories:
|
||||||
os.makedirs(os.path.join(destination, category.title))
|
os.makedirs(os.path.join(destination, category.title))
|
||||||
|
Reference in New Issue
Block a user