removed duplicated call to findnodes

This commit is contained in:
Matthieu Hog 2022-09-06 10:57:29 +02:00
parent aa1edf8d7b
commit f491b5a77b
2 changed files with 4 additions and 2 deletions

View file

@ -1315,6 +1315,6 @@ def submit(graphFile, submitter, toNode=None):
Submit the given graph via the given submitter.
"""
graph = loadGraph(graphFile)
toNodes = graph.findNodes([toNode]) if toNode else None
toNodes = graph.findNodes(toNode) if toNode else None
submitGraph(graph, submitter, toNodes)