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