diff --git a/posts.py b/posts.py index 179caf98..1c257de4 100644 --- a/posts.py +++ b/posts.py @@ -1932,7 +1932,7 @@ def archivePostsForPerson(httpPrefix: str,nickname: str,domain: str,baseDir: str # sort the list in ascending order of date postsInBox=OrderedDict(sorted(postsInBoxDict.items(),reverse=False)) - for postFilename in postsInBox: + for statusNumber,postFilename in postsInBox.items(): filePath = os.path.join(boxDir, postFilename) if os.path.isfile(filePath): if archiveDir: