update metadata schema

main
lza_menace 3 years ago
parent 76da4388eb
commit 71bdb715cc

@ -41,9 +41,12 @@ def upload_to_ipfs(meme_id: str):
'name': meme.title, 'name': meme.title,
'description': meme.description, 'description': meme.description,
'image': f'ipfs://{artwork_hash}', 'image': f'ipfs://{artwork_hash}',
'by': meme.user.handle, 'create_date': meme.create_date.strftime('%Y-%m-%d %H:%M:%S'),
'file_name': meme.file_name,
'ipfs_hash': artwork_hash,
'properties': { 'properties': {
'creator': meme.user.handle 'creator_handle': meme.user.handle,
'creator_address': meme.user.public_address
} }
} }
meta_hash = client.add_json(meta) meta_hash = client.add_json(meta)

Loading…
Cancel
Save