fix: write json with valid option

This commit is contained in:
monoid 2023-07-22 19:51:24 +09:00
parent 047224ee07
commit c678f7e14a
1 changed files with 1 additions and 1 deletions

2
gen.py
View File

@ -287,7 +287,7 @@ if __name__ == "__main__":
print(k) print(k)
print(data) print(data)
else: else:
with open(os.path.join(args.dir, k + ".json", encoding="UTF-8"), "w") as f: with open(os.path.join(args.dir, k + ".json"), "w", encoding="UTF-8") as f:
f.write(data) f.write(data)
else: else:
template = env.get_template("Lists.html") template = env.get_template("Lists.html")