Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Aug 12, 2024
1 parent 294598b commit 251a4cb
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def get_html_formatted_unit(
#
# Transforms from catalog api models -> webserver api models
#

# Uses aiocache (async) instead of cachetools (sync) in order to handle concurrency better
# SEE https://github.com/ITISFoundation/osparc-simcore/pull/6169
#
_SECOND = 1 # in seconds
_MINUTE = 60 * _SECOND
_CACHE_TTL: Final = 1 * _MINUTE
Expand Down Expand Up @@ -114,8 +116,7 @@ async def from_catalog_service_api_model(
) -> ServiceOutputGet:
data = service["outputs"][output_key]
# NOTE: prunes invalid field that might have remained in database
if "defaultValue" in data:
data.pop("defaultValue")
data.pop("defaultValue", None)

# NOTE: this call must be validated if port property type is "ref_contentSchema"
port = ServiceOutputGet(key_id=output_key, **data)
Expand Down

0 comments on commit 251a4cb

Please sign in to comment.