From 3cd11b73cf1229c5ada478d924e24e220764dd43 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 6 Mar 2021 19:04:41 +0000 Subject: [PATCH] Indicate calendar reminder events --- webapp_calendar.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/webapp_calendar.py b/webapp_calendar.py index 56ea86e5f..829cd577b 100644 --- a/webapp_calendar.py +++ b/webapp_calendar.py @@ -136,6 +136,7 @@ def _htmlCalendarDay(personCache: {}, cssCache: {}, translate: {}, eventPlace = None postId = None senderName = '' + senderActor = None # get the time place and description for ev in eventPost: if ev['type'] == 'Event': @@ -158,14 +159,20 @@ def _htmlCalendarDay(personCache: {}, cssCache: {}, translate: {}, '' + \ dispName + ': ' if ev.get('name'): - eventDescription = ev['name'].strip() + eventDescription = ev['name'].strip() elif ev['type'] == 'Place': if ev.get('name'): eventPlace = ev['name'] # prepend a link to the sender of the calendar item if senderName and eventDescription: - eventDescription = senderName + eventDescription + senderActor2 = senderActor.replace('/users/', '/@') + if senderActor not in eventDescription and \ + senderActor2 not in eventDescription: + eventDescription = senderName + eventDescription + else: + eventDescription = \ + translate['Reminder'] + ': ' + eventDescription deleteButtonStr = '' if postId: