dev@locazia: edit content json format
This commit is contained in:
parent
91d8220a30
commit
ffb78cbf3a
|
|
@ -54,11 +54,17 @@ class StoredContent(AlchemyBase):
|
|||
extra_fields['ipfs_cid'] = self.ipfs_cid
|
||||
if self.type.startswith('local'):
|
||||
pass
|
||||
elif self.type.startswith('onchain'):
|
||||
for k in [
|
||||
'item_address', 'license_type',
|
||||
'metadata_cid', 'content_cid', 'cover_cid',
|
||||
|
||||
]:
|
||||
extra_fields[k] = self.meta.get(k, None)
|
||||
|
||||
return {
|
||||
**extra_fields,
|
||||
"hash": self.hash,
|
||||
"cid": self.cid.serialize_v1(),
|
||||
"status": self.status,
|
||||
"meta": self.meta
|
||||
"status": self.status
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue