~edwargix/git.sr.ht

f0e29038bf57261c15897b4b10eb4fdf80590c28 — Drew DeVault 5 years ago 2a57aa7
ref: fix scope of artifact listing
1 files changed, 2 insertions(+), 1 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +2 -1
@@ 517,7 517,8 @@ def ref(owner, repo, ref):
                owner=owner, repo=repo.name, ref=tag.id.hex))
        artifacts = (Artifact.query
                .filter(Artifact.user_id == repo.owner_id)
                .filter(Artifact.repo_id == repo.id)).all()
                .filter(Artifact.repo_id == repo.id)
                .filter(Artifact.commit == tag.id.hex)).all()
        return render_template("ref.html", view="refs",
                owner=owner, repo=repo, git_repo=git_repo, tag=tag,
                artifacts=artifacts)