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
|
maxPostCtr=itemsPerPage*pageNumber
|
||||||
with open(indexFilename, 'r') as indexFile:
|
with open(indexFilename, 'r') as indexFile:
|
||||||
for postFilename in indexFile:
|
for postFilename in indexFile:
|
||||||
postsInBox[postsCtr]=os.path.join(boxDir, postFilename)
|
postsInBox[postsCtr]=os.path.join(boxDir, postFilename.replace('\n',''))
|
||||||
postsCtr+=1
|
postsCtr+=1
|
||||||
if maxPostCtr:
|
if maxPostCtr:
|
||||||
if postsCtr>=maxPostCtr:
|
if postsCtr>=maxPostCtr:
|
||||||
break
|
break
|
||||||
print(str(postsInBox))
|
|
||||||
else:
|
else:
|
||||||
postsCtr=createBoxIndex(boxDir,postsInBoxDict)
|
postsCtr=createBoxIndex(boxDir,postsInBoxDict)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue