Skip to content

Commit

Permalink
badge: display latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Nov 2, 2023
1 parent 2b76ceb commit 85e6724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/flakestry/api/flake.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def toFlakeRelease(release: Release) -> FlakeRelease:
)
def badge(owner: str, repo: str, session: Session = Depends(get_session)):
releases = read_repo(owner, repo, session)
latest = releases["releases"][-1]
latest = releases["releases"][0]
badge = anybadge.Badge(
label="flakestry.dev",
value=latest.version,
Expand Down

0 comments on commit 85e6724

Please sign in to comment.