forked from indymedia/epicyon
Link postId to tag
parent
b97a9861c8
commit
c6cf01c16a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue