diff --git a/happening.py b/happening.py index 263c22d8..58530acf 100644 --- a/happening.py +++ b/happening.py @@ -80,6 +80,8 @@ def getTodaysEvents(baseDir: str,nickname: str,domain: str, \ int(eventTime.strftime("%m"))==monthNumber and \ int(eventTime.strftime("%d"))==dayNumber: dayOfMonth=str(int(eventTime.strftime("%d"))) + # link to the id so that the event can be easily deleted + tag['postId']=postId postEvent.append(tag) else: # tag is a place @@ -88,8 +90,6 @@ def getTodaysEvents(baseDir: str,nickname: str,domain: str, \ calendarPostIds.append(postId) if not events.get(dayOfMonth): events[dayOfMonth]=[] - # link to the id so that the event can be easily deleted - postEvent['postId']=postId events[dayOfMonth].append(postEvent) # if some posts have been deleted then regenerate the calendar file