mirror of https://gitlab.com/bashrc2/epicyon
No additional chars
parent
7c168a0928
commit
b2d38b3d05
|
@ -304,17 +304,17 @@ def _showLocalBox(boxName: str, startPostIndex=0, noOfPosts=10) -> None:
|
||||||
continue
|
continue
|
||||||
published = speakerJson['published'].replace('T', ' ')
|
published = speakerJson['published'].replace('T', ' ')
|
||||||
posStr = str(pos) + '.'
|
posStr = str(pos) + '.'
|
||||||
while len(posStr) < 4:
|
while len(posStr) < 3:
|
||||||
posStr += ' '
|
posStr += ' '
|
||||||
if speakerJson.get('name'):
|
if speakerJson.get('name'):
|
||||||
name = speakerJson['name']
|
name = speakerJson['name']
|
||||||
else:
|
else:
|
||||||
name = ''
|
name = ''
|
||||||
name = (name[:16] + '..') if len(name) > 16 else name
|
name = (name[:16]) if len(name) > 16 else name
|
||||||
while len(name) < 16:
|
while len(name) < 16:
|
||||||
name += ' '
|
name += ' '
|
||||||
content = speakerJson['content']
|
content = speakerJson['content']
|
||||||
content = (content[:40] + '..') if len(content) > 40 else content
|
content = (content[:40]) if len(content) > 40 else content
|
||||||
print(str(posStr) + ' | ' + str(name) + ' | ' +
|
print(str(posStr) + ' | ' + str(name) + ' | ' +
|
||||||
str(published) + ' | ' + str(content) + ' |')
|
str(published) + ' | ' + str(content) + ' |')
|
||||||
print('')
|
print('')
|
||||||
|
|
Loading…
Reference in New Issue