Extract status number

This commit is contained in:
bashrc committed 2019-10-20 13:09:07 +01:00
1 parent 3bf8cdb36d
commit 5c67ada3bb
1 file changed
+4 -1
+4 -1
View File
@@ -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: