diff --git a/AMDirT/core/__init__.py b/AMDirT/core/__init__.py index e4545b4..f636f95 100644 --- a/AMDirT/core/__init__.py +++ b/AMDirT/core/__init__.py @@ -60,10 +60,15 @@ def get_amdir_tags(): "https://api.github.com/repos/SPAAM-community/AncientMetagenomeDir/tags" ) if r.status_code == 200: - return [ - tag["name"] + tags = [ + tag['name'] for tag in r.json() - if version.parse(tag["name"]) >= version.parse("v22.09") + if tag['name'] != 'latest' + ] + return [ + tag + for tag in tags + if version.parse(tag) >= version.parse("v22.09") ] else: logger.warning(