forked from indymedia/epicyon
Use different dictionary
parent
7e0ae8d8e1
commit
3328336639
3
posts.py
3
posts.py
|
@ -2029,6 +2029,7 @@ def createBoxBase(session,baseDir: str,boxname: str, \
|
|||
|
||||
# post filenames sorted in descending order
|
||||
postsInBoxDict={}
|
||||
postsInBox={}
|
||||
|
||||
indexFilename=baseDir+'/accounts/'+nickname+'@'+domain+'/'+boxname+'.index'
|
||||
if os.path.isfile(indexFilename):
|
||||
|
@ -2039,7 +2040,7 @@ def createBoxBase(session,baseDir: str,boxname: str, \
|
|||
maxPostCtr=itemsPerPage*pageNumber
|
||||
with open(indexFilename, 'r') as indexFile:
|
||||
for postFilename in indexFile:
|
||||
postsInBoxDict[postsCtr]=os.path.join(boxDir, postFilename)
|
||||
postsInBox[postsCtr]=os.path.join(boxDir, postFilename)
|
||||
postsCtr+=1
|
||||
if maxPostCtr:
|
||||
if postsCtr>=maxPostCtr:
|
||||
|
|
Loading…
Reference in New Issue