From a7872e7c7f947778fe788da033c28ecaa0351d71 Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@freedombone.net> Date: Wed, 6 Nov 2019 13:49:27 +0000 Subject: [PATCH] File path when archiving --- posts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posts.py b/posts.py index 8cced486..57deaf91 100644 --- a/posts.py +++ b/posts.py @@ -2290,9 +2290,9 @@ def archivePostsForPerson(httpPrefix: str,nickname: str,domain: str,baseDir: str if not postFilename.endswith('.json'): continue # Time of file creation - secondsSinceEpoch=getCreationTimeOfFile(postFilename) + secondsSinceEpoch=getCreationTimeOfFile(os.path.join(boxDir, postFilename)) if secondsSinceEpoch: - postsInBoxDict[secondsSinceEpoch]=os.path.join(boxDir, postFilename) + postsInBoxDict[secondsSinceEpoch]=postFilename postsCtr+=1 noOfPosts=postsCtr