Skip to content

Commit

Permalink
Fix dump metadata formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAplin committed Aug 6, 2024
1 parent 555f5d9 commit 25ce409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nndownload/nndownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -1850,7 +1850,7 @@ def dump_metadata(filename: AnyStr, template_params: dict):
filename = replace_extension(filename, "json")

with open(filename, "w", encoding="utf-8") as file:
json.dump(template_params, file, sort_keys=True)
json.dump(template_params, file, indent=4, ensure_ascii=False, sort_keys=True)

output("Finished downloading metadata for {0}.\n".format(template_params["id"]), logging.INFO)

Expand Down

0 comments on commit 25ce409

Please sign in to comment.