Always allow a few more pages

main2
Bob Mottram 2019-10-20 15:28:47 +01:00
parent 651b077cc2
commit 6dc0e3afd4
1 changed files with 3 additions and 5 deletions

View File

@ -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',''))