mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-04 19:52:33 +00:00
Remove trailing activity
This commit is contained in:
1 parent
2738dcbedf
commit
b0bd93e52d
1 file changed
+4
-1
@@ -1385,7 +1385,10 @@ def inboxUpdateCalendar(baseDir: str,handle: str,postJsonObject: {}) -> None:
|
||||
if not os.path.isdir(calendarPath+'/'+str(eventYear)):
|
||||
os.mkdir(calendarPath+'/'+str(eventYear))
|
||||
calendarFilename=calendarPath+'/'+str(eventYear)+'/'+str(eventMonthNumber)+'.txt'
|
||||
postId=postJsonObject['id'].replace('/','#')
|
||||
postId=postJsonObject['id']
|
||||
if '#' in postId:
|
||||
postId=postId.split('#')[0]
|
||||
postId=postId.replace('/','#')
|
||||
if os.path.isfile(calendarFilename):
|
||||
if postId in open(calendarFilename).read():
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user