mirror of https://gitlab.com/bashrc2/epicyon
Use locate
parent
eacef272d3
commit
c87713ff79
8
posts.py
8
posts.py
|
@ -2135,10 +2135,10 @@ def createBoxBase(session,baseDir: str,boxname: str, \
|
|||
postFilename=indexFile.readline()
|
||||
if not postFilename:
|
||||
break
|
||||
postFilename=postFilename.replace('\n','')
|
||||
fullPostFilename=os.path.join(boxDir, postFilename)
|
||||
if not os.path.isfile(fullPostFilename):
|
||||
fullPostFilename=os.path.join(announceCacheDir, postFilename)
|
||||
postUrl=postFilename.replace('\n','').replace('.json','')
|
||||
fullPostFilename= \
|
||||
locatePost(baseDir,nickname,domain,postUrl,False)
|
||||
if fullPostFilename:
|
||||
postsInBox[postsCtr]=fullPostFilename
|
||||
postsCtr+=1
|
||||
lookedUpFromIndex=True
|
||||
|
|
Loading…
Reference in New Issue