itemPrice

merge-requests/30/head
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, "location": location,
"published": published, "published": published,
"expire": durationSec, "expire": durationSec,
"price": price, "itemPrice": price,
"currency": currency "itemCurrency": currency
} }
saveJson(sharesJson, sharesFilename) saveJson(sharesJson, sharesFilename)
@ -1296,7 +1296,7 @@ def _dfcToSharesFormat(catalogJson: {},
"location": "", "location": "",
"published": item['DFC:startDate'], "published": item['DFC:startDate'],
"expire": durationSec, "expire": durationSec,
"price": item['DFC:price'].split(' ')[0], "itemPrice": item['DFC:price'].split(' ')[0],
"currency": item['DFC:price'].split(' ')[1] "itemCurrency": item['DFC:price'].split(' ')[1]
} }
return sharesJson return sharesJson

View File

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

View File

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