Skip to content

Commit

Permalink
Updating reference to metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsibilla committed Dec 19, 2023
1 parent 8b96272 commit 2c7cf90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/assayclassifier/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def get_ds_assaytype(ds_uuid: str):
entity_api_url = current_app.config["ENTITY_WEBSERVICE_URL"]
entity_api = EntitySdk(token=groups_token, service_url=entity_api_url)
entity = entity_api.get_entity_by_id(ds_uuid)
if "metadata" in entity.ingest_metadata:
metadata = entity.ingest_metadata["metadata"]
if "metadata" in entity.metadata:
metadata = entity.metadata["metadata"]
else:
metadata = {
"entity_type": entity.entity_type,
Expand Down

0 comments on commit 2c7cf90

Please sign in to comment.