mirror of https://gitlab.com/bashrc2/epicyon
More descriptive
parent
037e46cae6
commit
322651f7fe
10
posts.py
10
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue