support hashtags p.2
This commit is contained in:
parent
917b281e38
commit
4f3056c9ef
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue