From 2135525d2b1a118ab80af642752e8251f4ae95e3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 5 Sep 2020 17:35:50 +0100 Subject: [PATCH] Tidying --- utils.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/utils.py b/utils.py index 875bb0582..67093ac98 100644 --- a/utils.py +++ b/utils.py @@ -731,11 +731,9 @@ def getCachedPostFilename(baseDir: str, nickname: str, domain: str, if '@' not in cachedPostDir: # print('ERROR: invalid html cache directory '+cachedPostDir) return None - cachedPostFilename = \ - cachedPostDir + \ - '/' + removeIdEnding(postJsonObject['id']).replace('/', '#') - cachedPostFilename = cachedPostFilename + '.html' - return cachedPostFilename + cachedPostId = removeIdEnding(postJsonObject['id']) + cachedPostFilename = cachedPostDir + '/' + cachedPostId.replace('/', '#') + return cachedPostFilename + '.html' def removePostFromCache(postJsonObject: {}, recentPostsCache: {}):