2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-17 21:25:37 +00:00
This commit is contained in:
quadrismegistus 2020-09-13 21:19:30 +01:00
parent 61cdd56f38
commit c273f258aa

View File

@ -19,7 +19,7 @@ PHONEBOOK = {}
def locate_an_operator(name=None,pubkey=None): def locate_an_operator(name=None,pubkey=None):
global OPERATOR,TELEPHONE,PHONEBOOK global OPERATOR,TELEPHONE,PHONEBOOK
if name in PHONEBOOK: return PHONEBOOK[name] if name in PHONEBOOK: return PHONEBOOK[name]
if pubkey in PHONEBOOK: return PHONEBOOK[pubkey] # if pubkey in PHONEBOOK: return PHONEBOOK[pubkey]
from komrade.backend.the_operator import TheOperator from komrade.backend.the_operator import TheOperator
from komrade.backend.the_telephone import TheTelephone from komrade.backend.the_telephone import TheTelephone
@ -43,9 +43,9 @@ def locate_an_operator(name=None,pubkey=None):
return TELEPHONE return TELEPHONE
self.log('name????') print('name????',name)
from komrade.backend.komrades import Komrade from komrade.backend.komrades import Komrade
PHONEBOOK[name] = PHONEBOOK[pubkey] = caller = Komrade(name=name) PHONEBOOK[name] = caller = Komrade(name=name)
return caller return caller
from komrade.constants import OPERATOR_ROUTES from komrade.constants import OPERATOR_ROUTES