mirror of https://gitlab.com/bashrc2/epicyon
Extract status number
parent
3bf8cdb36d
commit
5c67ada3bb
5
posts.py
5
posts.py
|
@ -2040,7 +2040,10 @@ def createBoxBase(session,baseDir: str,boxname: str, \
|
|||
maxPostCtr=(itemsPerPage+3)*pageNumber
|
||||
with open(indexFilename, 'r') as indexFile:
|
||||
for postFilename in indexFile:
|
||||
postsInBox[postsCtr]=os.path.join(boxDir, postFilename.replace('\n',''))
|
||||
statusNumber=getStatusNumberFromPostFilename(postFilename)
|
||||
if not statusNumber:
|
||||
continue
|
||||
postsInBox[statusNumber]=os.path.join(boxDir, postFilename.replace('\n',''))
|
||||
postsCtr+=1
|
||||
if maxPostCtr:
|
||||
if postsCtr>=maxPostCtr:
|
||||
|
|
Loading…
Reference in New Issue