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(data)
|
||||
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)
|
||||
else:
|
||||
template = env.get_template("Lists.html")
|
||||
|
Loading…
Reference in New Issue
Block a user