Skip to content

Commit

Permalink
Try to fix CI linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bebatut committed Aug 1, 2024
1 parent 5cd4039 commit d208d81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/extract_galaxy_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand All @@ -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())
Expand Down

0 comments on commit d208d81

Please sign in to comment.