Skip to content

Commit

Permalink
fix: grafana version sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemental committed Jun 16, 2024
1 parent f16555e commit a35cd5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hacking/find_grafana_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_grafana_releases():
if major not in by_major.keys() or by_major[major]["as_tuple"] < as_tuple:
by_major[major] = {"version": version, "as_tuple": as_tuple}

latest_3_majors = sorted(list(by_major.keys()))[:3]
latest_3_majors = sorted(list(by_major.keys()), reverse=True)[:3]
latest_releases = [by_major[idx]["version"] for idx in latest_3_majors]

print(json.dumps(latest_releases))

0 comments on commit a35cd5a

Please sign in to comment.