From 026ef6e194a9cba8e8dc97978733e558fb77886f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 18 Nov 2019 14:12:00 +0000 Subject: [PATCH] Increment counter anyway --- posts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/posts.py b/posts.py index 07a9ec037..1536938ea 100644 --- a/posts.py +++ b/posts.py @@ -2382,6 +2382,7 @@ def createBoxIndexed(session,baseDir: str,boxname: str, \ continue if not postFilename: + postsCtr+=1 continue # if this is a full path then remove the directories @@ -2395,9 +2396,9 @@ def createBoxIndexed(session,baseDir: str,boxname: str, \ locatePost(baseDir,nickname,domain,postUrl,False) if fullPostFilename: addPostToTimeline(fullPostFilename,boxname,postsInBox,boxActor) - postsCtr+=1 else: print('WARN: unable to locate post '+postUrl) + postsCtr+=1 # Generate first and last entries within header if postsCtr>0: