From f6a52ebb911bf8070ac51b53d566faacfabea60d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 21 May 2020 22:53:12 +0100 Subject: [PATCH] Break at end of file --- posts.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/posts.py b/posts.py index de8c95353..329ec02bb 100644 --- a/posts.py +++ b/posts.py @@ -2547,8 +2547,7 @@ def createBoxIndexed(recentPostsCache: {}, postFilename = indexFile.readline() if not postFilename: - postsCtr += 1 - continue + break # Skip through any posts previous to the current page if postsCtr < int((pageNumber - 1) * itemsPerPage):