From c87713ff79715c1ae87ad48e3c79a2acd1919a40 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 18 Nov 2019 10:27:34 +0000 Subject: [PATCH] Use locate --- posts.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/posts.py b/posts.py index 807c91e2..3ace5f15 100644 --- a/posts.py +++ b/posts.py @@ -2135,12 +2135,12 @@ 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) - postsInBox[postsCtr]=fullPostFilename - postsCtr+=1 + postUrl=postFilename.replace('\n','').replace('.json','') + fullPostFilename= \ + locatePost(baseDir,nickname,domain,postUrl,False) + if fullPostFilename: + postsInBox[postsCtr]=fullPostFilename + postsCtr+=1 lookedUpFromIndex=True else: if boxname!='tlbookmarks':