forked from indymedia/epicyon
Without exception
parent
a589a14ca3
commit
214bb22898
9
posts.py
9
posts.py
|
@ -1660,7 +1660,7 @@ def createBoxBase(baseDir: str,boxname: str, \
|
|||
boxname+'?min_id='+postId+'&page=true'
|
||||
# get the full path of the post file
|
||||
filePath = postFilename
|
||||
try:
|
||||
#try:
|
||||
if os.path.isfile(filePath):
|
||||
if currPage == pageNumber and postsOnPageCtr <= itemsPerPage:
|
||||
# get the post as json
|
||||
|
@ -1693,16 +1693,15 @@ def createBoxBase(baseDir: str,boxname: str, \
|
|||
postId+'&page=true'
|
||||
# remember the last post filename for use with prev
|
||||
prevPostFilename = postFilename
|
||||
if postsOnPageCtr > itemsPerPage:
|
||||
if postsOnPageCtr >= itemsPerPage:
|
||||
break
|
||||
# count the pages
|
||||
if currPage != pageNumber:
|
||||
postsCtr += 1
|
||||
if postsCtr >= itemsPerPage:
|
||||
postsCtr = 0
|
||||
currPage += 1
|
||||
except Exception as e:
|
||||
print(e)
|
||||
#except Exception as e:
|
||||
# print(e)
|
||||
if headerOnly:
|
||||
return boxHeader
|
||||
return boxItems
|
||||
|
|
Loading…
Reference in New Issue