itemPrice

main
Bob Mottram 2021-07-27 21:26:10 +01:00
parent ac75704734
commit 4198e12c42
3 changed files with 6 additions and 6 deletions

View File

@ -293,8 +293,8 @@ def addShare(baseDir: str,
"location": location,
"published": published,
"expire": durationSec,
"price": price,
"currency": currency
"itemPrice": price,
"itemCurrency": currency
}
saveJson(sharesJson, sharesFilename)
@ -1296,7 +1296,7 @@ def _dfcToSharesFormat(catalogJson: {},
"location": "",
"published": item['DFC:startDate'],
"expire": durationSec,
"price": item['DFC:price'].split(' ')[0],
"currency": item['DFC:price'].split(' ')[1]
"itemPrice": item['DFC:price'].split(' ')[0],
"itemCurrency": item['DFC:price'].split(' ')[1]
}
return sharesJson

View File

@ -139,7 +139,7 @@ def _htmlSearchResultShare(sharedItem: {}, translate: {},
if sharedItem.get('itemQty'):
sharedItemsForm += \
'<b>' + translate['Quantity'] + \
':</b> ' + str(sharedItem['itemQty']) + ' '
':</b> ' + str(sharedItem['itemQty']) + '<br>'
sharedItemsForm += \
'<b>' + translate['Type'] + ':</b> ' + sharedItem['itemType'] + ' '
sharedItemsForm += \

View File

@ -828,7 +828,7 @@ def htmlIndividualShare(actor: str, item: {}, translate: {},
if item.get('itemQty'):
profileStr += \
'<b>' + translate['Quantity'] + ':</b> ' + \
str(item['itemQty']) + ' '
str(item['itemQty']) + '<br>'
profileStr += \
'<b>' + translate['Type'] + ':</b> ' + item['itemType'] + ' '
profileStr += \