Make sure to filter hidden tags from the active tags query

This commit is contained in:
Joseph Schorr 2017-04-13 19:29:38 -04:00
parent 197e10cf65
commit 4a1fad7520

View file

@ -102,7 +102,7 @@ def list_active_repo_tags(repo):
query = _tag_alive(RepositoryTag
.select(RepositoryTag, Image, TagManifest.digest)
.join(Image)
.where(RepositoryTag.repository == repo)
.where(RepositoryTag.repository == repo, RepositoryTag.hidden == False)
.switch(RepositoryTag)
.join(TagManifest, JOIN_LEFT_OUTER))