Extract status number

main2
Bob Mottram 2019-10-20 13:09:07 +01:00
parent 3bf8cdb36d
commit 5c67ada3bb
1 changed files with 4 additions and 1 deletions

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: