mirror of https://gitlab.com/bashrc2/epicyon
Merge branch 'main' of ssh://code.freedombone.net:2222/bashrc/epicyon into main
commit
d8aee36265
|
|
@ -1075,12 +1075,6 @@ def _desktopShowBox(indent: str,
|
||||||
# say the post number range
|
# say the post number range
|
||||||
sayStr = indent + boxNameStr + ' page ' + str(pageNumber) + \
|
sayStr = indent + boxNameStr + ' page ' + str(pageNumber) + \
|
||||||
' containing ' + str(ctr - 1) + ' posts. '
|
' containing ' + str(ctr - 1) + ' posts. '
|
||||||
if newDMs and boxName != 'dm':
|
|
||||||
sayStr += \
|
|
||||||
'Use \33[3mshow dm\33[0m to view direct messages.'
|
|
||||||
elif newReplies and boxName != 'tlreplies':
|
|
||||||
sayStr += \
|
|
||||||
'Use \33[3mshow replies\33[0m to view reply posts.'
|
|
||||||
sayStr2 = sayStr.replace('\33[3m', '').replace('\33[0m', '')
|
sayStr2 = sayStr.replace('\33[3m', '').replace('\33[0m', '')
|
||||||
sayStr2 = sayStr2.replace('show dm', 'show DM')
|
sayStr2 = sayStr2.replace('show dm', 'show DM')
|
||||||
sayStr2 = sayStr2.replace('dm post', 'Direct message post')
|
sayStr2 = sayStr2.replace('dm post', 'Direct message post')
|
||||||
|
|
|
||||||
6
utils.py
6
utils.py
|
|
@ -1546,8 +1546,10 @@ def updateRecentPostsCache(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
while len(recentPostsCache['html'].items()) > maxRecentPosts:
|
while len(recentPostsCache['html'].items()) > maxRecentPosts:
|
||||||
postId = recentPostsCache['index'][0]
|
postId = recentPostsCache['index'][0]
|
||||||
recentPostsCache['index'].pop(0)
|
recentPostsCache['index'].pop(0)
|
||||||
del recentPostsCache['json'][postId]
|
if recentPostsCache['json'].get(postId):
|
||||||
del recentPostsCache['html'][postId]
|
del recentPostsCache['json'][postId]
|
||||||
|
if recentPostsCache['html'].get(postId):
|
||||||
|
del recentPostsCache['html'][postId]
|
||||||
else:
|
else:
|
||||||
recentPostsCache['index'] = [postId]
|
recentPostsCache['index'] = [postId]
|
||||||
recentPostsCache['json'] = {}
|
recentPostsCache['json'] = {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue