Only add debug if there are a small number of posts

merge-requests/30/head
Bob Mottram 2021-03-05 16:10:25 +00:00
parent 0e208f4121
commit 9caa658a5e
2 changed files with 7 additions and 5 deletions

View File

@ -3250,8 +3250,9 @@ def _createBoxIndexed(recentPostsCache: {},
print('WARN: Unable to locate post ' + postUrl +
' nickname ' + nickname)
print('Posts added to timeline ' + boxname + ': ' +
str(postsAddedToTimeline))
if postsCtr < 3:
print('Posts added to json timeline ' + boxname + ': ' +
str(postsAddedToTimeline))
# Generate first and last entries within header
if postsCtr > 0:

View File

@ -735,9 +735,10 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
if boxName == 'tlmedia':
tlStr += '</div>\n'
print('Items in timeline ' + boxName + ': ' +
str(itemCtr) + ' ' + str(timelineJson['orderedItems']))
if itemCtr < 3:
print('Items added to html timeline ' + boxName + ': ' +
str(itemCtr) + ' ' + str(timelineJson['orderedItems']))
# page down arrow
if itemCtr > 2:
tlStr += textModeSeparator