Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Aug 12, 2024
1 parent 251a4cb commit 698d069
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions services/web/server/src/simcore_service_webserver/catalog/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,12 @@ async def list_service_outputs(
service = await client.get_service(
ctx.app, ctx.user_id, service_key, service_version, ctx.product_name
)

outputs = []
for output_key in service["outputs"]:
service_output = ServiceOutputGetFactory.from_catalog_service_api_model(
service, output_key, None
return [
await ServiceOutputGetFactory.from_catalog_service_api_model(
service=service, output_key=output_key, ureg=None
)
outputs.append(service_output)
return outputs
for output_key in service["outputs"]
]


async def get_service_output(
Expand All @@ -321,12 +319,10 @@ async def get_service_output(
service = await client.get_service(
ctx.app, ctx.user_id, service_key, service_version, ctx.product_name
)
service_output: ServiceOutputGet = (
ServiceOutputGetFactory.from_catalog_service_api_model(service, output_key)
return await ServiceOutputGetFactory.from_catalog_service_api_model(
service=service, output_key=output_key
)

return service_output


async def get_compatible_outputs_given_target_input(
service_key: ServiceKey,
Expand Down

0 comments on commit 698d069

Please sign in to comment.