mirror of https://gitlab.com/bashrc2/epicyon
Always allow a few more pages
parent
651b077cc2
commit
6dc0e3afd4
8
posts.py
8
posts.py
|
@ -2037,12 +2037,10 @@ def createBoxBase(session,baseDir: str,boxname: str, \
|
||||||
postsCtr=0
|
postsCtr=0
|
||||||
maxPostCtr=None
|
maxPostCtr=None
|
||||||
if not pageNumber:
|
if not pageNumber:
|
||||||
maxPostCtr=itemsPerPage*3
|
minPageNumber=4
|
||||||
else:
|
else:
|
||||||
minPageNumber=pageNumber
|
minPageNumber=pageNumber+4
|
||||||
if minPageNumber<3:
|
maxPostCtr=itemsPerPage*minPageNumber
|
||||||
minPageNumber=3
|
|
||||||
maxPostCtr=itemsPerPage*minPageNumber
|
|
||||||
with open(indexFilename, 'r') as indexFile:
|
with open(indexFilename, 'r') as indexFile:
|
||||||
for postFilename in indexFile:
|
for postFilename in indexFile:
|
||||||
postsInBox[postsCtr]=os.path.join(boxDir, postFilename.replace('\n',''))
|
postsInBox[postsCtr]=os.path.join(boxDir, postFilename.replace('\n',''))
|
||||||
|
|
Loading…
Reference in New Issue