Compatibility for old node templates (those with default_symbol and hover_symbol properties).

This commit is contained in:
grossmj committed 2018-01-12 17:34:37 +07:00
1 parent 8b1c68a0b7
commit ab6fe6da1d
2 files changed
+11 -4

No files matched your search

+1 -1
View File
@@ -434,11 +434,11 @@ class Project:
:param dump: Dump topology to disk
:param kwargs: See the documentation of node
"""
if node_id in self._nodes:
return self._nodes[node_id]
if node_type == "iou" and 'application_id' not in kwargs.keys():
kwargs['application_id'] = get_next_application_id(self._nodes.values())
node = Node(self, compute, name, node_id=node_id, node_type=node_type, **kwargs)