From 63fe0252a31d1126b0ee16343d4e3411e4a8ecb5 Mon Sep 17 00:00:00 2001 From: Diego Pardo Date: Tue, 27 Aug 2024 13:37:06 +0100 Subject: [PATCH] BUGFIX: fixing legacy use cases of get_successors (#21) --- python/drisk_api/graph_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/drisk_api/graph_client.py b/python/drisk_api/graph_client.py index 6fb7ea2..62b3cf6 100644 --- a/python/drisk_api/graph_client.py +++ b/python/drisk_api/graph_client.py @@ -320,7 +320,7 @@ def get_view_axes_and_filters( x_node, y_node, *filters = [ uuid for uuid, _ in sorted( - zip(*self.get_successors(view_node, weights=True)), + self.get_successors(view_node, weights=True), key=lambda x: x[1], ) ] @@ -342,7 +342,7 @@ def add_nodes_to_view( x_node, y_node, *_ = [ uuid for uuid, _ in sorted( - zip(*self.get_successors(view_node, weights=True)), + self.get_successors(view_node, weights=True), key=lambda x: x[1], ) ]