mirror of https://gitlab.com/bashrc2/epicyon
Check that display name exists
parent
72ea07ceac
commit
4e5c05004c
|
@ -150,10 +150,13 @@ def _htmlCalendarDay(personCache: {}, cssCache: {}, translate: {},
|
||||||
# get display name from sending actor
|
# get display name from sending actor
|
||||||
if ev.get('sender'):
|
if ev.get('sender'):
|
||||||
senderActor = ev['sender']
|
senderActor = ev['sender']
|
||||||
senderName = \
|
dispName = \
|
||||||
'<a href="' + senderActor + '">' + \
|
|
||||||
getDisplayName(baseDir, senderActor,
|
getDisplayName(baseDir, senderActor,
|
||||||
personCache) + '</a>: '
|
personCache)
|
||||||
|
if dispName:
|
||||||
|
senderName = \
|
||||||
|
'<a href="' + senderActor + '">' + \
|
||||||
|
dispName + '</a>: '
|
||||||
if ev.get('name'):
|
if ev.get('name'):
|
||||||
eventDescription = senderName + ev['name'].strip()
|
eventDescription = senderName + ev['name'].strip()
|
||||||
elif ev['type'] == 'Place':
|
elif ev['type'] == 'Place':
|
||||||
|
|
Loading…
Reference in New Issue