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