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 ce413d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/extract_galaxy_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ 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"]}"
self.link = f"https://workflowhub.eu{ wf['data']['links']['self'] }"
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 +68,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={ wf['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 All @@ -95,7 +95,7 @@ def add_creators(self, wf: dict) -> None:
if other and len(other) > 0:
self.creators.extend(wf["data"]["attributes"]["other_creators"].split(","))
else:
self.creators.extend([f"{c["given_name"]} {c["family_name"]}" for c in creators])
self.creators.extend([f"{c['given_name']} {c['family_name']}" for c in creators])
else:
if "creator" in wf and wf["creator"] is not None:
self.creators.extend([c["name"] for c in wf["creator"]])
Expand Down

0 comments on commit ce413d6

Please sign in to comment.