From 71bdb715cc9df2bbeaf0312672c9cc208a0857b2 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Mon, 10 Jan 2022 00:24:47 -0800 Subject: [PATCH] update metadata schema --- suchwowx/helpers.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/suchwowx/helpers.py b/suchwowx/helpers.py index 0502236..505c884 100644 --- a/suchwowx/helpers.py +++ b/suchwowx/helpers.py @@ -41,9 +41,12 @@ def upload_to_ipfs(meme_id: str): 'name': meme.title, 'description': meme.description, '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': { - 'creator': meme.user.handle + 'creator_handle': meme.user.handle, + 'creator_address': meme.user.public_address } } meta_hash = client.add_json(meta)