Skip to content

Commit

Permalink
improved
Browse files Browse the repository at this point in the history
  • Loading branch information
paulzierep committed Mar 11, 2024
1 parent 8a21c5b commit 44cfe25
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/extract_galaxy_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def get_xref(el: et.Element, attrib_type: str) -> Optional[str]:
for xref in xref_items:
if xref is not None and xref.attrib["type"] == attrib_type:
# should not contain any space of linebreak
xref_sanitized = str(xref.text).replace("\n", "").replace(" ", "")
xref_sanitized = str(xref.text).strip()
return xref_sanitized
return None

Expand Down Expand Up @@ -428,10 +428,10 @@ def parse_tools(repo: Repository) -> List[Dict[str, Any]]:
for folder in tool_folders:
for tool in folder:
# to avoid API request limit issue, wait for one hour
if g.get_rate_limit().core.remaining < 200:
print("WAITING for 1 hour to retrieve GitHub API request access !!!")
print()
time.sleep(60 * 60)
# if g.get_rate_limit().core.remaining < 200:
# print("WAITING for 1 hour to retrieve GitHub API request access !!!")
# print()
# time.sleep(60 * 60)

# parse tool
# if the folder (tool) has a .shed.yml file run get get_tool_metadata on that folder,
Expand Down

0 comments on commit 44cfe25

Please sign in to comment.