Implement indexing into Apache Druid #1

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

View File

@ -214,7 +214,6 @@ class API(object):
if net not in main.network.keys():
return dumps({"success": False, "reason": "no such net."})
nets = [net]
print("NETS", nets)
for net_name in nets:
conns = helpers.get_connected_relays(net_name)
if not conns:
@ -228,14 +227,12 @@ class API(object):
conn.regPing(reset=True)
elif func == "register":
for conn in conns:
print("REGISTER ACCOUNT", conn.net, conn.num)
regproc.registerAccount(conn.net, conn.num)
return dumps({"success": True})
@app.route("/irc/network/<net>/", methods=["POST"])
@login_required
def irc_network(self, request, net):
print("IRC_NETWORK")
if net not in main.network.keys():
return dumps({"success": False, "reason": "no such net."})
inst = main.network[net]

View File

@ -35,7 +35,7 @@ def selectInst(net):
if i not in inst:
inst[i] = main.irc["_"][i]
else:
inst = main.irc["_"]
inst = deepcopy(main.irc["_"])
return inst