2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-03 23:15:33 +00:00

komrade update!

This commit is contained in:
quadrismegistus 2020-09-19 16:04:12 +01:00
parent 3afdc9ea55
commit 555f4b737e
2 changed files with 18 additions and 2 deletions

View File

@ -245,6 +245,24 @@ class KomradeX(Caller):
logfunc(f'Congratulations. Welcome, {self}.',pause=True,clear=True)
# self.help()
##
# last minute: get posts
if 'res_posts' in resp_msg_d and resp_msg_d['res_posts'].get('success'):
id2post=resp_msg_d.get('res_posts').get('posts',{})
if id2post:
self.log('found starter posts:',list(id2post.keys()))
self.save_posts(id2post)
resp_msg_d['status']+=f' You\'ve got {len(id2post)} new posts and 0 new messages.'
return resp_msg_d
###
return resp_msg_d

View File

@ -126,8 +126,6 @@ class CLI(Logger):
clear_screen()
self.boot()
border = '-'*(40)
if not self.logged_in: