From c6cf01c16a061ac02851bbf7c77a98f78692d0a8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 23 Feb 2020 11:22:46 +0000 Subject: [PATCH] Link postId to tag --- happening.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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