support hashtags p.2

This commit is contained in:
user 2025-02-05 10:00:25 +03:00
parent 917b281e38
commit 4f3056c9ef
1 changed files with 3 additions and 2 deletions

View File

@ -49,7 +49,8 @@ async def create_metadata_for_item(
db_session, db_session,
title: str = None, title: str = None,
cover_url: str = None, cover_url: str = None,
authors: list = None authors: list = None,
hashtags: list = [],
) -> StoredContent: ) -> StoredContent:
assert title, "No title provided" assert title, "No title provided"
# assert cover_url, "No cover_url provided" # assert cover_url, "No cover_url provided"
@ -58,7 +59,7 @@ async def create_metadata_for_item(
item_metadata = { item_metadata = {
'name': title, 'name': title,
'description': '@MY Content Ownership Proof NFT', 'description': ' '.join([f"#{_h}" for _h in hashtags]),
'attributes': [ 'attributes': [
# { # {
# 'trait_type': 'Artist', # 'trait_type': 'Artist',