mirror of https://gitlab.com/bashrc2/epicyon
Check that quantity value exists
parent
67747bad72
commit
c4db90c66f
|
@ -176,9 +176,10 @@ def htmlSearchSharedItems(cssCache: {}, translate: {},
|
||||||
'" alt="Item image"></a>\n'
|
'" alt="Item image"></a>\n'
|
||||||
sharedItemsForm += \
|
sharedItemsForm += \
|
||||||
'<p>' + sharedItem['summary'] + '</p>\n<p>'
|
'<p>' + sharedItem['summary'] + '</p>\n<p>'
|
||||||
sharedItemsForm += \
|
if sharedItem.get('itemQty'):
|
||||||
'<b>' + translate['Quantity'] + \
|
sharedItemsForm += \
|
||||||
':</b> ' + str(sharedItem['itemQty']) + ' '
|
'<b>' + translate['Quantity'] + \
|
||||||
|
':</b> ' + str(sharedItem['itemQty']) + ' '
|
||||||
sharedItemsForm += \
|
sharedItemsForm += \
|
||||||
'<b>' + translate['Type'] + \
|
'<b>' + translate['Type'] + \
|
||||||
':</b> ' + sharedItem['itemType'] + ' '
|
':</b> ' + sharedItem['itemType'] + ' '
|
||||||
|
|
|
@ -820,10 +820,11 @@ def htmlIndividualShare(actor: str, item: {}, translate: {},
|
||||||
profileStr += \
|
profileStr += \
|
||||||
'<img loading="lazy" src="' + item['imageUrl'] + \
|
'<img loading="lazy" src="' + item['imageUrl'] + \
|
||||||
'" alt="' + translate['Item image'] + '">\n</a>\n'
|
'" alt="' + translate['Item image'] + '">\n</a>\n'
|
||||||
profileStr += '<p>' + item['summary'] + '</p>\n'
|
profileStr += '<p>' + item['summary'] + '</p>\n<p>'
|
||||||
profileStr += '<p>'
|
if item.get('itemQty'):
|
||||||
profileStr += \
|
profileStr += \
|
||||||
'<b>' + translate['Quantity'] + ':</b> ' + str(item['itemQty']) + ' '
|
'<b>' + translate['Quantity'] + ':</b> ' + \
|
||||||
|
str(item['itemQty']) + ' '
|
||||||
profileStr += \
|
profileStr += \
|
||||||
'<b>' + translate['Type'] + ':</b> ' + item['itemType'] + ' '
|
'<b>' + translate['Type'] + ':</b> ' + item['itemType'] + ' '
|
||||||
profileStr += \
|
profileStr += \
|
||||||
|
|
Loading…
Reference in New Issue