mirror of https://gitlab.com/bashrc2/epicyon
Check that index exists
parent
4213a1981a
commit
7ffc14e0fb
2
utils.py
2
utils.py
|
@ -465,7 +465,9 @@ def removePostFromCache(postJsonObject: {},recentPostsCache: {}):
|
||||||
if postId not in recentPostsCache['index']:
|
if postId not in recentPostsCache['index']:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if recentPostsCache['json'].get(postId):
|
||||||
del recentPostsCache['json'][postId]
|
del recentPostsCache['json'][postId]
|
||||||
|
if recentPostsCache['html'].get(postId):
|
||||||
del recentPostsCache['html'][postId]
|
del recentPostsCache['html'][postId]
|
||||||
recentPostsCache['index'].remove(postId)
|
recentPostsCache['index'].remove(postId)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue