forked from indymedia/epicyon
Count posts
parent
451684fdca
commit
514630d3b9
4
posts.py
4
posts.py
|
@ -2170,7 +2170,9 @@ def archivePostsForPerson(httpPrefix: str,nickname: str,domain: str,baseDir: str
|
|||
os.mkdir(archiveDir)
|
||||
boxDir = createPersonDir(nickname,domain,baseDir,boxname)
|
||||
postsInBox=os.scandir(boxDir)
|
||||
noOfPosts=len(postsInBox)
|
||||
noOfPosts=0
|
||||
for f in postsInBox:
|
||||
noOfPosts+=1
|
||||
if noOfPosts<=maxPostsInBox:
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue