Skip to content

Commit

Permalink
try to hit dockstore
Browse files Browse the repository at this point in the history
  • Loading branch information
nikellepetrillo committed Dec 12, 2024
1 parent a442e2e commit 6206293
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/dockstore_api/fetch_dockstore_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit 6206293

Please sign in to comment.