Loop through dictionary

main2
Bob Mottram 2019-09-14 12:21:59 +01:00
parent 0710f3d38a
commit 35531bda86
1 changed files with 1 additions and 1 deletions

View File

@ -1932,7 +1932,7 @@ def archivePostsForPerson(httpPrefix: str,nickname: str,domain: str,baseDir: str
# sort the list in ascending order of date # sort the list in ascending order of date
postsInBox=OrderedDict(sorted(postsInBoxDict.items(),reverse=False)) postsInBox=OrderedDict(sorted(postsInBoxDict.items(),reverse=False))
for postFilename in postsInBox: for statusNumber,postFilename in postsInBox.items():
filePath = os.path.join(boxDir, postFilename) filePath = os.path.join(boxDir, postFilename)
if os.path.isfile(filePath): if os.path.isfile(filePath):
if archiveDir: if archiveDir: