Skip to content

Commit

Permalink
added again file extension check .include and .obo file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerskk committed Jul 25, 2024
1 parent 0bc0db0 commit 5013c90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/endpoints/ontologies.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ async def build_from_scratch():

for file in tree:
current_path = github_api.convert_to_raw_url(file.get("path"), branch)
if ".obo" in current_path:
if current_path.endswith(".obo"):
urls.append(current_path)
if ".include" in current_path:
if current_path.endswith(".include"):
general_downloader = GeneralDownloader(current_path)
url_list = general_downloader.download_file()
for url in url_list:
Expand Down

0 comments on commit 5013c90

Please sign in to comment.