Rename function

main
Bob Mottram 2019-11-18 12:57:34 +00:00
parent a332ccf219
commit 084c5c0cc9
1 changed files with 2 additions and 2 deletions

View File

@ -2276,7 +2276,7 @@ def createBoxBase(session,baseDir: str,boxname: str, \
return boxHeader return boxHeader
return boxItems return boxItems
def isTimelinePost(filePath: str,boxname: str,postsInBox: []) -> bool: def addPostToTimeline(filePath: str,boxname: str,postsInBox: [],boxActor: str) -> bool:
""" is this a valid timeline post? """ is this a valid timeline post?
""" """
# must be a "Note" or "Announce" type # must be a "Note" or "Announce" type
@ -2394,7 +2394,7 @@ def createBoxIndexed(session,baseDir: str,boxname: str, \
fullPostFilename= \ fullPostFilename= \
locatePost(baseDir,nickname,domain,postUrl,False) locatePost(baseDir,nickname,domain,postUrl,False)
if fullPostFilename: if fullPostFilename:
isTimelinePost(fullPostFilename,boxname,postsInBox) addPostToTimeline(fullPostFilename,boxname,postsInBox,boxActor)
postsCtr+=1 postsCtr+=1
else: else:
print('WARN: unable to locate post '+postUrl) print('WARN: unable to locate post '+postUrl)