Duplicate prepends

main
Bob Mottram 2021-03-06 18:48:16 +00:00
parent 4e5c05004c
commit 4667b455b7
1 changed files with 3 additions and 1 deletions

View File

@ -158,13 +158,15 @@ def _htmlCalendarDay(personCache: {}, cssCache: {}, translate: {},
'<a href="' + senderActor + '">' + \ '<a href="' + senderActor + '">' + \
dispName + '</a>: ' dispName + '</a>: '
if ev.get('name'): if ev.get('name'):
eventDescription = senderName + ev['name'].strip() eventDescription = ev['name'].strip()
elif ev['type'] == 'Place': elif ev['type'] == 'Place':
if ev.get('name'): if ev.get('name'):
eventPlace = ev['name'] eventPlace = ev['name']
# prepend a link to the sender of the calendar item
if senderName and eventDescription: if senderName and eventDescription:
eventDescription = senderName + eventDescription eventDescription = senderName + eventDescription
deleteButtonStr = '' deleteButtonStr = ''
if postId: if postId:
deleteButtonStr = \ deleteButtonStr = \