Fix bug in Vertex class for handling dictionary values
This commit is contained in:
parent
199b656f19
commit
971b0ca366
1 changed files with 1 additions and 1 deletions
|
|
@ -313,7 +313,7 @@ class Vertex:
|
||||||
params[param_key] = []
|
params[param_key] = []
|
||||||
params[param_key].append(self.graph.get_vertex(edge.source_id))
|
params[param_key].append(self.graph.get_vertex(edge.source_id))
|
||||||
elif edge.target_id == self.id:
|
elif edge.target_id == self.id:
|
||||||
if isinstance(template_dict[param_key]["value"], dict):
|
if isinstance(template_dict[param_key].get("value"), dict):
|
||||||
# we don't know the key of the dict but we need to set the value
|
# we don't know the key of the dict but we need to set the value
|
||||||
# to the vertex that is the source of the edge
|
# to the vertex that is the source of the edge
|
||||||
param_dict = template_dict[param_key]["value"]
|
param_dict = template_dict[param_key]["value"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue