Fix check for manual infection
This commit is contained in:
parent
8163e39804
commit
04c86737e9
|
@ -13,6 +13,6 @@ class Node(flask_restful.Resource):
|
||||||
def get(self):
|
def get(self):
|
||||||
node_id = request.args.get('id')
|
node_id = request.args.get('id')
|
||||||
if node_id:
|
if node_id:
|
||||||
return NodeService.get_displayed_node_by_id(request.args.get('node_id'))
|
return NodeService.get_displayed_node_by_id(node_id)
|
||||||
|
|
||||||
return {}
|
return {}
|
||||||
|
|
|
@ -77,8 +77,12 @@ class NodeService:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_monkey_manual_run(monkey):
|
def get_monkey_manual_run(monkey):
|
||||||
# TODO: find better implementation
|
for p in monkey["parent"]:
|
||||||
return monkey["parent"][0][1] == None
|
if p[0] != monkey["guid"]:
|
||||||
|
return False
|
||||||
|
|
||||||
|
return True
|
||||||
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_monkey_label(monkey):
|
def get_monkey_label(monkey):
|
||||||
|
|
Loading…
Reference in New Issue