From 9e72ec29aca389f9acc5ba6776c1dbd1f857bac8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 17 Nov 2019 15:38:46 +0000 Subject: [PATCH] Counting items --- webinterface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webinterface.py b/webinterface.py index c316fe1d..f45a9997 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2559,7 +2559,6 @@ def htmlTimeline(translate: {},pageNumber: int, \ for item in timelineJson['orderedItems']: if item['type']=='Create' or item['type']=='Announce': #avatarUrl=getPersonAvatarUrl(baseDir,item['actor'],personCache) - itemCtr+=1 currTlStr= \ individualPostAsHtml(iconsDir,translate,pageNumber, \ baseDir,session,wfRequest,personCache, \ @@ -2571,12 +2570,13 @@ def htmlTimeline(translate: {},pageNumber: int, \ manuallyApproveFollowers,False,True) if currTlStr: + itemCtr+=1 tlStr+=currTlStr if boxName=='tlmedia': tlStr+='\n' # page down arrow - if itemCtr>1: + if itemCtr>int(itemsPerPage/2): tlStr+='
'+translate['Page down']+'
' tlStr+=htmlFooter() return tlStr