mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-10-31 01:51:15 +00:00
Tidying
This commit is contained in:
1 parent
43b1fdf67c
commit
2135525d2b
1 file changed
+3
-5
@@ -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: {}):
|
||||
|
||||
Reference in new issue
Block a user