fix: write json with valid option
This commit is contained in:
parent
047224ee07
commit
c678f7e14a
2
gen.py
2
gen.py
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user