Skip to content

Commit

Permalink
Merge pull request #20 from stefanches7/main
Browse files Browse the repository at this point in the history
return a list of descended items
  • Loading branch information
joshmoore authored Aug 27, 2024
2 parents 42cac03 + ecc9420 commit 61419d2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/omero_rdf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def _configure(self, parser: Parser) -> None:
parser.add_login_arguments()
rdf_type = ProxyStringType("Image")
rdf_help = "Object to be exported to RDF"
parser.add_argument("target", type=rdf_type, nargs="*", help=rdf_help)
parser.add_argument("target", type=rdf_type, nargs="+", help=rdf_help)
parser.add_argument(
"--pretty",
action="store_true",
Expand Down Expand Up @@ -376,9 +376,7 @@ def descend(
"""

if isinstance(target, list):
for x in target:
randomid = self.descend(gateway, x, handler)
return randomid # TODO return a list?
return([self.descend(gateway, t, handler) for t in target])

elif isinstance(target, Screen):
scr = self._lookup(gateway, "Screen", target.id)
Expand Down

0 comments on commit 61419d2

Please sign in to comment.