mirror of https://gitlab.com/bashrc2/epicyon
Unique share ID for the instance
parent
5421facdb3
commit
312e8bbdfa
|
@ -762,9 +762,10 @@ def sharesCatalogAccountEndpoint(baseDir: str, httpPrefix: str,
|
||||||
expireDate = datetime.datetime.fromtimestamp(item['durationSec'])
|
expireDate = datetime.datetime.fromtimestamp(item['durationSec'])
|
||||||
expireDateStr = expireDate.strftime("%Y-%m-%dT%H:%M:%SZ")
|
expireDateStr = expireDate.strftime("%Y-%m-%dT%H:%M:%SZ")
|
||||||
|
|
||||||
|
shareId = getValidSharedItemID(owner, item['displayName'])
|
||||||
dfcId = item['dfcId'].split('#')[1]
|
dfcId = item['dfcId'].split('#')[1]
|
||||||
catalogItem = {
|
catalogItem = {
|
||||||
"@id": item['dfcId'],
|
"@id": shareId,
|
||||||
"@type": "DFC:SuppliedProduct",
|
"@type": "DFC:SuppliedProduct",
|
||||||
"DFC:hasType": "dfc-pt:" + dfcId,
|
"DFC:hasType": "dfc-pt:" + dfcId,
|
||||||
"DFC:offeredThrough": owner,
|
"DFC:offeredThrough": owner,
|
||||||
|
|
Loading…
Reference in New Issue