forked from indymedia/epicyon
Minimum number of items
parent
9ae3f23383
commit
4ec7e69437
5
posts.py
5
posts.py
|
@ -2036,7 +2036,9 @@ def createBoxBase(session,baseDir: str,boxname: str, \
|
|||
print('DEBUG: using index file to construct timeline')
|
||||
postsCtr=0
|
||||
maxPostCtr=None
|
||||
if pageNumber:
|
||||
if not pageNumber:
|
||||
maxPostCtr=itemsPerPage*3
|
||||
else:
|
||||
minPageNumber=pageNumber
|
||||
if minPageNumber<3:
|
||||
minPageNumber=3
|
||||
|
@ -2045,7 +2047,6 @@ def createBoxBase(session,baseDir: str,boxname: str, \
|
|||
for postFilename in indexFile:
|
||||
postsInBox[postsCtr]=os.path.join(boxDir, postFilename.replace('\n',''))
|
||||
postsCtr+=1
|
||||
if maxPostCtr:
|
||||
if postsCtr>=maxPostCtr:
|
||||
break
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue