mirror of https://gitlab.com/bashrc2/epicyon
Rename function
parent
a332ccf219
commit
084c5c0cc9
4
posts.py
4
posts.py
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue