From c678f7e14acc2e5154d05d9c0cb7e158d5796aa5 Mon Sep 17 00:00:00 2001 From: monoid Date: Sat, 22 Jul 2023 19:51:24 +0900 Subject: [PATCH] fix: write json with valid option --- gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen.py b/gen.py index 7518403..5cf8e0b 100644 --- a/gen.py +++ b/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")