From 6206293e39e1c5b2b9a0ca17b638199896d6d04e Mon Sep 17 00:00:00 2001 From: npetrill Date: Thu, 12 Dec 2024 13:46:29 -0500 Subject: [PATCH] try to hit dockstore --- scripts/dockstore_api/fetch_dockstore_id.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/dockstore_api/fetch_dockstore_id.py b/scripts/dockstore_api/fetch_dockstore_id.py index d6064ebecc..27f8fb6ab1 100644 --- a/scripts/dockstore_api/fetch_dockstore_id.py +++ b/scripts/dockstore_api/fetch_dockstore_id.py @@ -16,12 +16,14 @@ def fetch_workflow_id(token, repository, subclass, version_name): response = requests.get(url, params=params, headers=headers) response.raise_for_status() data = response.json() + desired_version_name = "np_jw_test_illumina_genotyping_arrays" + # Extract workflow and version IDs workflow_id = data.get("id") version_id = next( (version["id"] for version in data.get("workflowVersions", []) - if version["name"] == {version_name}), + if version["name"] == desired_version_name), None )