mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
43b1fdf67c
commit
2135525d2b
8
utils.py
8
utils.py
|
@ -731,11 +731,9 @@ def getCachedPostFilename(baseDir: str, nickname: str, domain: str,
|
||||||
if '@' not in cachedPostDir:
|
if '@' not in cachedPostDir:
|
||||||
# print('ERROR: invalid html cache directory '+cachedPostDir)
|
# print('ERROR: invalid html cache directory '+cachedPostDir)
|
||||||
return None
|
return None
|
||||||
cachedPostFilename = \
|
cachedPostId = removeIdEnding(postJsonObject['id'])
|
||||||
cachedPostDir + \
|
cachedPostFilename = cachedPostDir + '/' + cachedPostId.replace('/', '#')
|
||||||
'/' + removeIdEnding(postJsonObject['id']).replace('/', '#')
|
return cachedPostFilename + '.html'
|
||||||
cachedPostFilename = cachedPostFilename + '.html'
|
|
||||||
return cachedPostFilename
|
|
||||||
|
|
||||||
|
|
||||||
def removePostFromCache(postJsonObject: {}, recentPostsCache: {}):
|
def removePostFromCache(postJsonObject: {}, recentPostsCache: {}):
|
||||||
|
|
Loading…
Reference in New Issue