Skip to content

Commit

Permalink
fix: tag latest dropped for version comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibor committed Jul 24, 2024
1 parent 04f18fa commit 310d74d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion AMDirT/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,14 @@ def get_amdir_tags():
"https://api.github.com/repos/SPAAM-community/AncientMetagenomeDir/tags"
)
if r.status_code == 200:
tags = [
tag['name']
for tag in r.json()
if tag['name'] != 'latest'
]
return [
tag["name"]
for tag in r.json()
for tag in tags
if version.parse(tag["name"]) >= version.parse("v22.09")
]
else:
Expand Down

0 comments on commit 310d74d

Please sign in to comment.