Skip to content

Commit

Permalink
store json as text file
Browse files Browse the repository at this point in the history
  • Loading branch information
shrivaths16 committed Jan 9, 2024
1 parent 303a2d2 commit b708717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/make_bulletin_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def generate_json_file():
# Append last section
bulletin_json.append({"title": title, "date": date, "content": content})

with open("bulletin.json", "w", encoding="utf-8") as json_file:
json.dump(bulletin_json, json_file, ensure_ascii=False, indent=4)
with open("bulletin.json", "w") as f:
f.write(repr(bulletin_json))


if __name__ == "__main__":
Expand Down

0 comments on commit b708717

Please sign in to comment.