mirror of https://gitlab.com/bashrc2/epicyon
Show timeline banner
parent
b1c689aa97
commit
9b03b416ab
|
@ -392,7 +392,7 @@ def _readLocalBoxPost(boxName: str, index: int,
|
||||||
|
|
||||||
def _showLocalBox(notifyJson: {}, boxName: str,
|
def _showLocalBox(notifyJson: {}, boxName: str,
|
||||||
screenreader: str, systemLanguage: str, espeak,
|
screenreader: str, systemLanguage: str, espeak,
|
||||||
startPostIndex=0, noOfPosts=10) -> None:
|
startPostIndex=0, noOfPosts=10) -> bool:
|
||||||
"""Shows locally stored posts for a given subdirectory
|
"""Shows locally stored posts for a given subdirectory
|
||||||
"""
|
"""
|
||||||
indent = ' '
|
indent = ' '
|
||||||
|
@ -410,15 +410,17 @@ def _showLocalBox(notifyJson: {}, boxName: str,
|
||||||
if not f.endswith('.json'):
|
if not f.endswith('.json'):
|
||||||
continue
|
continue
|
||||||
index.append(f)
|
index.append(f)
|
||||||
if not index:
|
|
||||||
sayStr = 'You have no ' + boxName + ' posts yet.'
|
|
||||||
_sayCommand(sayStr, sayStr, screenreader, systemLanguage, espeak)
|
|
||||||
print('')
|
|
||||||
return
|
|
||||||
|
|
||||||
# title
|
# title
|
||||||
_clearScreen()
|
_clearScreen()
|
||||||
_showDesktopBanner()
|
_showDesktopBanner()
|
||||||
|
|
||||||
|
if not index:
|
||||||
|
sayStr = 'You have no ' + boxName + ' posts yet.'
|
||||||
|
_sayCommand(sayStr, sayStr, screenreader, systemLanguage, espeak)
|
||||||
|
print('')
|
||||||
|
return False
|
||||||
|
|
||||||
notificationIcons = ''
|
notificationIcons = ''
|
||||||
if notifyJson:
|
if notifyJson:
|
||||||
if notifyJson.get('followRequests'):
|
if notifyJson.get('followRequests'):
|
||||||
|
@ -511,6 +513,7 @@ def _showLocalBox(notifyJson: {}, boxName: str,
|
||||||
_sayCommand(sayStr, sayStr2,
|
_sayCommand(sayStr, sayStr2,
|
||||||
screenreader, systemLanguage, espeak)
|
screenreader, systemLanguage, espeak)
|
||||||
print('')
|
print('')
|
||||||
|
return True
|
||||||
|
|
||||||
|
|
||||||
def _notificationNewDM(session, toHandle: str,
|
def _notificationNewDM(session, toHandle: str,
|
||||||
|
|
Loading…
Reference in New Issue