Implement indexing into Apache Druid #1

Closed
m wants to merge 263 commits from druid into master
1 changed files with 12 additions and 1 deletions
Showing only changes of commit 7c23766763 - Show all commits

View File

@ -6,7 +6,18 @@ class ListCommand:
def list(self, addr, authed, data, obj, spl, success, failure, info, incUsage, length): def list(self, addr, authed, data, obj, spl, success, failure, info, incUsage, length):
if authed: if authed:
if length == 2: if length == 1:
for i in main.network.keys():
if not 1 in main.network[i].relays.keys():
info("Network has no first instance: %s" % i)
continue
if not i+"1" in main.IRCPool.keys():
info("No IRC instance: %s - 1" % i)
continue
main.IRCPool[i+"1"].list()
success("Requested list with first instance of %s" % i)
return
elif length == 2:
if not spl[1] in main.network.keys(): if not spl[1] in main.network.keys():
failure("No such network: %s" % spl[1]) failure("No such network: %s" % spl[1])
return return