mirror of https://gitlab.com/bashrc2/epicyon
Remove carriage return
parent
478b9e7909
commit
0b95f9df52
3
posts.py
3
posts.py
|
@ -2040,12 +2040,11 @@ def createBoxBase(session,baseDir: str,boxname: str, \
|
|||
maxPostCtr=itemsPerPage*pageNumber
|
||||
with open(indexFilename, 'r') as indexFile:
|
||||
for postFilename in indexFile:
|
||||
postsInBox[postsCtr]=os.path.join(boxDir, postFilename)
|
||||
postsInBox[postsCtr]=os.path.join(boxDir, postFilename.replace('\n',''))
|
||||
postsCtr+=1
|
||||
if maxPostCtr:
|
||||
if postsCtr>=maxPostCtr:
|
||||
break
|
||||
print(str(postsInBox))
|
||||
else:
|
||||
postsCtr=createBoxIndex(boxDir,postsInBoxDict)
|
||||
|
||||
|
|
Loading…
Reference in New Issue