Skip to content

Commit

Permalink
add indent to metadata file
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorChepkasov committed Aug 15, 2023
1 parent 9a1ae3b commit d2a9847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def update_metadata(token_id, data):
for i in range(len(data)):
json_file["attributes"][i]['value'] = str(data[i])
print(json_file["attributes"][i]['value'])
json.dump(json_file, metadata_file)
json.dump(json_file, metadata_file, indent=4)

def upload_to_ipfs(data):
endpoint = "https://api.pinata.cloud/pinning/pinFileToIPFS"
Expand Down

0 comments on commit d2a9847

Please sign in to comment.