Skip to content

Commit

Permalink
bio.tools DNS entry is back
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo committed Oct 31, 2023
1 parent 2486e8d commit 49c8a7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/extract_galaxy_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
from github.Repository import Repository

# Config variables
# BIOTOOLS_API_URL = "https://bio.tools"
BIOTOOLS_API_URL = "https://130.226.25.21"
BIOTOOLS_API_URL = "https://bio.tools"
# BIOTOOLS_API_URL = "https://130.226.25.21"


def read_file(filepath) -> List[str]:
Expand Down Expand Up @@ -261,7 +261,7 @@ def get_tool_metadata(tool: ContentFile, repo: Repository) -> Optional[Dict[str,
metadata["Status"] = "Up-to-date"
# get bio.tool information
if metadata["bio.tool id"] is not None:
r = requests.get(f'{BIOTOOLS_API_URL}/api/tool/{metadata["bio.tool id"]}/?format=json', verify=False)
r = requests.get(f'{BIOTOOLS_API_URL}/api/tool/{metadata["bio.tool id"]}/?format=json')
if r.status_code == requests.codes.ok:
biotool_info = r.json()
if "function" in biotool_info:
Expand Down

0 comments on commit 49c8a7a

Please sign in to comment.