mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-14 10:38:22 +00:00
fix: [correlation] fix graph node endpoint
This commit is contained in:
parent
4b0a7210b8
commit
8dfe8fec91
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ def correlation_graph_node_json(correlation_type, type_id, key_id):
|
||||||
|
|
||||||
nodes = []
|
nodes = []
|
||||||
for node in nodes_set_dump:
|
for node in nodes_set_dump:
|
||||||
nodes.append({"id": node[0], "group": node[1], "first_seen": node[3], "last_seen": node[4], "nb_seen_in_paste": node[5], 'icon': get_icon_text(correlation_type, node[2]),"url": url_for(get_show_key_id_endpoint(correlation_type), hash=node[0]), 'hash': True})
|
nodes.append({"id": node[0], "group": node[1], "first_seen": node[3], "last_seen": node[4], "nb_seen_in_paste": node[5], 'icon': get_icon_text(correlation_type, node[2]),"url": url_for(get_show_key_id_endpoint(correlation_type), type_id=node[2], key_id=node[0]), 'hash': True})
|
||||||
for node in nodes_set_paste:
|
for node in nodes_set_paste:
|
||||||
nodes.append({"id": node[0], "group": node[1],"url": url_for('showsavedpastes.showsavedpaste', paste=node[0]), 'hash': False})
|
nodes.append({"id": node[0], "group": node[1],"url": url_for('showsavedpastes.showsavedpaste', paste=node[0]), 'hash': False})
|
||||||
links = []
|
links = []
|
||||||
|
|
Loading…
Reference in a new issue