2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-05 21:20:51 +00:00
This commit is contained in:
quadrismegistus 2020-09-13 15:27:39 +01:00
parent 0b9590feaa
commit b3e0872e71

View File

@ -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