Skip to content

Commit

Permalink
all subtrees viewable
Browse files Browse the repository at this point in the history
  • Loading branch information
iris-liu0312 committed Dec 5, 2021
1 parent e39444a commit 2947cc3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# SDF version 1.2
schema_key_dict = {
'root': ['@id', 'name', 'description', 'comment', '@type', 'repeatable'],
'root': ['@id', 'name', 'description', 'comment', '@type', 'repeatable', 'TA1explanation'],
'participant': ['@id', 'roleName', 'entity'],
'child': ['child', 'comment', 'outlinks', 'outlink_gate', 'optional']
}
Expand Down Expand Up @@ -239,6 +239,9 @@ def get_connected_nodes(selected_node):
for id in id_set:
for edge in edges:
if edge['data']['source'] == id and edge['data']['_edge_type'] == 'child_outlink':
# check if node was created previously
if edge['data']['target'] not in id_set:
n.append(nodes[edge['data']['target']])
e.append(edge)

return {
Expand Down

0 comments on commit 2947cc3

Please sign in to comment.