From 322651f7fec4058abb0d647fe4b4e7a70785a788 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 17 Feb 2021 14:01:45 +0000 Subject: [PATCH] More descriptive --- posts.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/posts.py b/posts.py index 66b64b83e..d2187a04d 100644 --- a/posts.py +++ b/posts.py @@ -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