Skip to content

Commit

Permalink
Use braces
Browse files Browse the repository at this point in the history
  • Loading branch information
aramirezmartin committed Jul 28, 2022
1 parent 063cf5e commit cf50f07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vt_graph_api/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,10 +458,10 @@ def _add_group_nodes_from_json_data(self, json_graph_data_nodes):
}
"""

self.group_nodes = dict([
(node['entity_id'], node) for node in json_graph_data_nodes
if node.get("type") == "relationship" and node.get(
"entity_attributes", {}).get("relationship_type") == "group"])
self.group_nodes = {node['entity_id']: node for node in
json_graph_data_nodes
if node.get("type") == "relationship" and node.get(
"entity_attributes", {}).get("relationship_type") == "group"}

def _is_special_relationship_node(self, node):
"""Checks if a node is a special relationship node.
Expand Down

0 comments on commit cf50f07

Please sign in to comment.