More descriptive

main
Bob Mottram 2021-02-17 14:01:45 +00:00
parent 037e46cae6
commit 322651f7fe
1 changed files with 7 additions and 3 deletions

View File

@ -3101,10 +3101,12 @@ def _createBoxIndexed(recentPostsCache: {},
# but have their own separate index
indexBoxName = boxname
timelineNickname = nickname
tlFeatures = False
if boxname == "tlbookmarks":
boxname = "bookmarks"
indexBoxName = boxname
elif boxname == "tlfeatures":
tlFeatures = True
boxname = "tlblogs"
indexBoxName = boxname
timelineNickname = 'news'
@ -3227,8 +3229,8 @@ def _createBoxIndexed(recentPostsCache: {},
_addPostToTimeline(fullPostFilename, boxname,
postsInBox, boxActor)
else:
# if this is the features timeline
if timelineNickname != nickname:
# if this is the features timeline
fullPostFilename = \
locatePost(baseDir, timelineNickname,
domain, postUrl, False)
@ -3236,9 +3238,11 @@ def _createBoxIndexed(recentPostsCache: {},
_addPostToTimeline(fullPostFilename, boxname,
postsInBox, boxActor)
else:
print('WARN: unable to locate post ' + postUrl)
print('WARN: features timeline. ' +
'Unable to locate post ' + postUrl)
else:
print('WARN: unable to locate post ' + postUrl)
print('WARN: Unable to locate post ' + postUrl +
' nickname ' + nickname)
postsCtr += 1