Implement indexing into Apache Druid #1
|
@ -654,6 +654,9 @@ class API(object):
|
||||||
if not len(spl) == 2:
|
if not len(spl) == 2:
|
||||||
return dumps({"success": False, "reason": f"malformed item: {item}"})
|
return dumps({"success": False, "reason": f"malformed item: {item}"})
|
||||||
net, num = spl
|
net, num = spl
|
||||||
|
if not num.isdigit():
|
||||||
|
return dumps({"success": False, "reason": "invalid num: not a number."})
|
||||||
|
num = int(num)
|
||||||
if token:
|
if token:
|
||||||
regproc.confirmAccount(net, num, token)
|
regproc.confirmAccount(net, num, token)
|
||||||
return dumps({"success": True})
|
return dumps({"success": True})
|
||||||
|
|
Loading…
Reference in New Issue