From 6dc0e3afd4dee70f1eec07241b7e1c52cd08b169 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 20 Oct 2019 15:28:47 +0100 Subject: [PATCH] Always allow a few more pages --- posts.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/posts.py b/posts.py index 7a2f27af..0c806431 100644 --- a/posts.py +++ b/posts.py @@ -2037,12 +2037,10 @@ def createBoxBase(session,baseDir: str,boxname: str, \ postsCtr=0 maxPostCtr=None if not pageNumber: - maxPostCtr=itemsPerPage*3 + minPageNumber=4 else: - minPageNumber=pageNumber - if minPageNumber<3: - minPageNumber=3 - maxPostCtr=itemsPerPage*minPageNumber + minPageNumber=pageNumber+4 + maxPostCtr=itemsPerPage*minPageNumber with open(indexFilename, 'r') as indexFile: for postFilename in indexFile: postsInBox[postsCtr]=os.path.join(boxDir, postFilename.replace('\n',''))