mirror of https://gitlab.com/bashrc2/epicyon
itemPrice
parent
ac75704734
commit
4198e12c42
|
@ -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
|
||||
|
|
|
@ -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 += \
|
||||
|
|
|
@ -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 += \
|
||||
|
|
Loading…
Reference in New Issue