mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
3328336639
commit
478b9e7909
3
posts.py
3
posts.py
|
@ -2045,6 +2045,7 @@ def createBoxBase(session,baseDir: str,boxname: str, \
|
||||||
if maxPostCtr:
|
if maxPostCtr:
|
||||||
if postsCtr>=maxPostCtr:
|
if postsCtr>=maxPostCtr:
|
||||||
break
|
break
|
||||||
|
print(str(postsInBox))
|
||||||
else:
|
else:
|
||||||
postsCtr=createBoxIndex(boxDir,postsInBoxDict)
|
postsCtr=createBoxIndex(boxDir,postsInBoxDict)
|
||||||
|
|
||||||
|
@ -2080,10 +2081,12 @@ def createBoxBase(session,baseDir: str,boxname: str, \
|
||||||
# Are we at the starting page yet?
|
# Are we at the starting page yet?
|
||||||
if prevPostFilename and currPage==pageNumber and postsCtr==0:
|
if prevPostFilename and currPage==pageNumber and postsCtr==0:
|
||||||
# update the prev entry for the last message id
|
# update the prev entry for the last message id
|
||||||
|
if '#statuses#' in prevPostFilename:
|
||||||
postId = prevPostFilename.split('#statuses#')[1].replace('#activity','')
|
postId = prevPostFilename.split('#statuses#')[1].replace('#activity','')
|
||||||
boxHeader['prev']= \
|
boxHeader['prev']= \
|
||||||
httpPrefix+'://'+domain+'/users/'+nickname+'/'+ \
|
httpPrefix+'://'+domain+'/users/'+nickname+'/'+ \
|
||||||
boxname+'?min_id='+postId+'&page=true'
|
boxname+'?min_id='+postId+'&page=true'
|
||||||
|
|
||||||
# get the full path of the post file
|
# get the full path of the post file
|
||||||
filePath = postFilename
|
filePath = postFilename
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue