Skip to content

Commit

Permalink
Update update_database.py, pretty format JSON written to file.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsorby authored May 21, 2024
1 parent 9710218 commit 30cfd45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generation/update_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def read_file(file):

def write_file(file, data):
with open(file, "w") as file:
json.dump(data, file)
json.dump(data, file, default=lambda o: o.__dict__, sort_keys=True, indent=2))


def check_plugins_for_updates():
Expand Down

0 comments on commit 30cfd45

Please sign in to comment.