From 8dfe8fec911eeb3217c9a3c9371d311b7821c229 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Fri, 24 May 2019 14:14:07 +0200 Subject: [PATCH] fix: [correlation] fix graph node endpoint --- var/www/modules/hashDecoded/Flask_hashDecoded.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/www/modules/hashDecoded/Flask_hashDecoded.py b/var/www/modules/hashDecoded/Flask_hashDecoded.py index 597190c1..1cbf4f98 100644 --- a/var/www/modules/hashDecoded/Flask_hashDecoded.py +++ b/var/www/modules/hashDecoded/Flask_hashDecoded.py @@ -460,7 +460,7 @@ def correlation_graph_node_json(correlation_type, type_id, key_id): nodes = [] 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: nodes.append({"id": node[0], "group": node[1],"url": url_for('showsavedpastes.showsavedpaste', paste=node[0]), 'hash': False}) links = []