Implement indexing into Apache Druid #1
|
@ -16,6 +16,7 @@ def getEnabledRelays(net):
|
|||
:return: list of enabled relay numbers
|
||||
"""
|
||||
enabledRelays = [x for x in main.network[net].relays.keys() if main.network[net].relays[x]["enabled"]]
|
||||
debug(f"getEnabledRelays() {net}: {enabledRelays}")
|
||||
return enabledRelays
|
||||
|
||||
|
||||
|
@ -33,6 +34,7 @@ def getActiveRelays(net):
|
|||
if name in main.IRCPool.keys():
|
||||
if main.IRCPool[name].authenticated and main.IRCPool[name].isconnected:
|
||||
activeRelays.append(i)
|
||||
debug(f"getActiveRelays() {net}: {activeRelays}")
|
||||
return activeRelays
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue