Unique share ID for the instance

main
Bob Mottram 2021-07-25 10:34:49 +01:00
parent 5421facdb3
commit 312e8bbdfa
1 changed files with 2 additions and 1 deletions

View File

@ -762,9 +762,10 @@ def sharesCatalogAccountEndpoint(baseDir: str, httpPrefix: str,
expireDate = datetime.datetime.fromtimestamp(item['durationSec'])
expireDateStr = expireDate.strftime("%Y-%m-%dT%H:%M:%SZ")
shareId = getValidSharedItemID(owner, item['displayName'])
dfcId = item['dfcId'].split('#')[1]
catalogItem = {
"@id": item['dfcId'],
"@id": shareId,
"@type": "DFC:SuppliedProduct",
"DFC:hasType": "dfc-pt:" + dfcId,
"DFC:offeredThrough": owner,