diff --git a/webapp_search.py b/webapp_search.py index a4660b29d..0b1cbf90f 100644 --- a/webapp_search.py +++ b/webapp_search.py @@ -137,9 +137,10 @@ def _htmlSearchResultShare(sharedItem: {}, translate: {}, '" alt="Item image">\n' sharedItemsForm += '

' + sharedItem['summary'] + '

\n

' if sharedItem.get('itemQty'): - sharedItemsForm += \ - '' + translate['Quantity'] + \ - ': ' + str(sharedItem['itemQty']) + '
' + if sharedItem['itemQty'] > 1: + sharedItemsForm += \ + '' + translate['Quantity'] + \ + ': ' + str(sharedItem['itemQty']) + '
' sharedItemsForm += \ '' + translate['Type'] + ': ' + sharedItem['itemType'] + '
' sharedItemsForm += \ diff --git a/webapp_timeline.py b/webapp_timeline.py index 1d220f0bc..18ba0da1c 100644 --- a/webapp_timeline.py +++ b/webapp_timeline.py @@ -826,9 +826,10 @@ def htmlIndividualShare(actor: str, item: {}, translate: {}, '" alt="' + translate['Item image'] + '">\n\n' profileStr += '

' + item['summary'] + '

\n

' if item.get('itemQty'): - profileStr += \ - '' + translate['Quantity'] + ': ' + \ - str(item['itemQty']) + '
' + if item['itemQty'] > 1: + profileStr += \ + '' + translate['Quantity'] + ': ' + \ + str(item['itemQty']) + '
' profileStr += \ '' + translate['Type'] + ': ' + item['itemType'] + '
' profileStr += \