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
|
||||
sayStr = indent + boxNameStr + ' page ' + str(pageNumber) + \
|
||||
' 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 = sayStr2.replace('show dm', 'show DM')
|
||||
sayStr2 = sayStr2.replace('dm post', 'Direct message post')
|
||||
|
|
|
|||
2
utils.py
2
utils.py
|
|
@ -1546,7 +1546,9 @@ def updateRecentPostsCache(recentPostsCache: {}, maxRecentPosts: int,
|
|||
while len(recentPostsCache['html'].items()) > maxRecentPosts:
|
||||
postId = recentPostsCache['index'][0]
|
||||
recentPostsCache['index'].pop(0)
|
||||
if recentPostsCache['json'].get(postId):
|
||||
del recentPostsCache['json'][postId]
|
||||
if recentPostsCache['html'].get(postId):
|
||||
del recentPostsCache['html'][postId]
|
||||
else:
|
||||
recentPostsCache['index'] = [postId]
|
||||
|
|
|
|||
Loading…
Reference in New Issue