Merge pull request #1767 from alicevision/bugfix-tonode-submit

removed duplicated call to findnodes
This commit is contained in:
Fabien Castan 2022-09-07 20:21:30 +02:00 committed by GitHub
commit 267aff5a09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -1356,6 +1356,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)