Implement indexing into Apache Druid #1
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue