mirror of
https://github.com/ComradCollective/Comrad
synced 2024-11-05 21:20:51 +00:00
updates
This commit is contained in:
parent
0b9590feaa
commit
b3e0872e71
@ -22,7 +22,7 @@ class CLI(Logger):
|
||||
self._komrade=None
|
||||
|
||||
def run(self,inp='',name=''):
|
||||
if name: self._name=name
|
||||
# if name: self._name=name
|
||||
clear_screen()
|
||||
self.boot()
|
||||
self.help()
|
||||
@ -65,8 +65,10 @@ class CLI(Logger):
|
||||
def register(self,name=None):
|
||||
if not self._komrade:
|
||||
self._komrade = Komrade(name if name else self.name)
|
||||
print(self._komrade.register())
|
||||
self._name=self._komrade.name
|
||||
res=self._komrade.register()
|
||||
if 'success' in res and res['success']:
|
||||
self._name=self._komrade.name
|
||||
print('@Operator: '+res.get('status','?'))
|
||||
|
||||
def login(self,name):
|
||||
name=self.name if not name else name
|
||||
|
Loading…
Reference in New Issue
Block a user