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 12:25:30 +01:00
parent ed7b07a992
commit e63c6dfaf4
2 changed files with 4 additions and 1 deletions

View File

@ -16,12 +16,15 @@ class TheSwitchboard(FlaskView, Logger):
@property
def op(self):
global OP_PASS
from komrade.backend.the_operator import TheOperator
if type(self)==TheOperator: return self
if hasattr(self,'_op'): return self._op
global OPERATOR,OPERATOR_KEYCHAIN
if OPERATOR: return OPERATOR
self._op=OPERATOR=TheOperator()
self.log(f'@Operator waiting for incoming calls on {OPERATOR_API_URL}...',pause=False)
return OPERATOR

View File

@ -40,7 +40,7 @@ class TheOperator(Operator):
self._keychain = self.keychain()
# self.log('@Operator booted with keychain:',dict_format(self._keychain),'and passphrase',self.passphrase)
clear_screen()
self.log(f'@Operator waiting for incoming calls on {OPERATOR_API_URL}...',pause=False)
def ring(self,
from_caller=None,