diff --git a/bin/extract_galaxy_workflows.py b/bin/extract_galaxy_workflows.py index eec03b4c..5a5c7800 100644 --- a/bin/extract_galaxy_workflows.py +++ b/bin/extract_galaxy_workflows.py @@ -55,7 +55,8 @@ def init_from_search(self, wf: dict, source: str, tools: dict) -> None: self.source = source if self.source == "WorkflowHub": self.id = wf["data"]["id"] - self.link = f"https://workflowhub.eu{wf["data"]["links"]["self"]}" + link = wf["data"]["links"]["self"] + self.link = f"https://workflowhub.eu{ link }" self.name = wf["data"]["attributes"]["title"] self.tags = wf["data"]["attributes"]["tags"] self.create_time = shared.format_date(wf["data"]["attributes"]["created_at"]) @@ -68,7 +69,7 @@ def init_from_search(self, wf: dict, source: str, tools: dict) -> None: self.edam_topic = [t["label"] for t in wf["data"]["attributes"]["topic_annotations"]] else: self.id = wf["id"] - self.link = f"{ source }/published/workflow?id={ wf["id"] }" + self.link = f"{ source }/published/workflow?id={ self.id }" self.name = wf["name"] self.add_creators(wf) self.number_of_steps = wf["number_of_steps"] if "number_of_steps" in wf else len(wf["steps"].keys())