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