From ffb94a4c86b8b41a4b5046c0c5121a5f642fbc04 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 21 Feb 2020 10:07:40 -0500 Subject: [PATCH] repo.ref artifacts: use tag target, not self --- gitsrht/blueprints/repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitsrht/blueprints/repo.py b/gitsrht/blueprints/repo.py index d3cdf61..d1fcca4 100644 --- a/gitsrht/blueprints/repo.py +++ b/gitsrht/blueprints/repo.py @@ -518,7 +518,7 @@ def ref(owner, repo, ref): artifacts = (Artifact.query .filter(Artifact.user_id == repo.owner_id) .filter(Artifact.repo_id == repo.id) - .filter(Artifact.commit == tag.id.hex)).all() + .filter(Artifact.commit == tag.target.hex)).all() return render_template("ref.html", view="refs", owner=owner, repo=repo, git_repo=git_repo, tag=tag, artifacts=artifacts) -- 2.38.4