Url variable

merge-requests/30/head
Bob Mottram 2021-09-06 09:52:34 +01:00
parent 3c2e575ea9
commit 36fd03166b
1 changed files with 4 additions and 4 deletions

View File

@ -3498,7 +3498,7 @@ def _createBoxIndexed(recentPostsCache: {},
postFilename.replace('\n', '').replace('\r', '') postFilename.replace('\n', '').replace('\r', '')
postUrl = postUrl.replace('.json', '').strip() postUrl = postUrl.replace('.json', '').strip()
if url in postUrlsInBox: if postUrl in postUrlsInBox:
continue continue
# is the post cached in memory? # is the post cached in memory?
@ -3511,7 +3511,7 @@ def _createBoxIndexed(recentPostsCache: {},
boxActor): boxActor):
totalPostsCount += 1 totalPostsCount += 1
postsAddedToTimeline += 1 postsAddedToTimeline += 1
postUrlsInBox.append(url) postUrlsInBox.append(postUrl)
continue continue
else: else:
print('Post not added to timeline') print('Post not added to timeline')
@ -3529,7 +3529,7 @@ def _createBoxIndexed(recentPostsCache: {},
postsInBox, boxActor): postsInBox, boxActor):
postsAddedToTimeline += 1 postsAddedToTimeline += 1
totalPostsCount += 1 totalPostsCount += 1
postUrlsInBox.append(url) postUrlsInBox.append(postUrl)
else: else:
print('WARN: Unable to add post ' + postUrl + print('WARN: Unable to add post ' + postUrl +
' nickname ' + nickname + ' nickname ' + nickname +
@ -3545,7 +3545,7 @@ def _createBoxIndexed(recentPostsCache: {},
postsInBox, boxActor): postsInBox, boxActor):
postsAddedToTimeline += 1 postsAddedToTimeline += 1
totalPostsCount += 1 totalPostsCount += 1
postUrlsInBox.append(url) postUrlsInBox.append(postUrl)
else: else:
print('WARN: Unable to add features post ' + print('WARN: Unable to add features post ' +
postUrl + ' nickname ' + nickname + postUrl + ' nickname ' + nickname +