From 35531bda86ff8a2868e6e41b143eb8e6d5225589 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 14 Sep 2019 12:21:59 +0100 Subject: [PATCH] Loop through dictionary --- posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posts.py b/posts.py index 179caf987..1c257de4b 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: