From a35cd5a35b9683e0f88ebd3405ac9b06664d537f Mon Sep 17 00:00:00 2001 From: Nemental <15136847+Nemental@users.noreply.github.com> Date: Sun, 16 Jun 2024 11:23:40 +0200 Subject: [PATCH] fix: grafana version sorting --- hacking/find_grafana_versions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hacking/find_grafana_versions.py b/hacking/find_grafana_versions.py index 716f877a..c54f18ca 100644 --- a/hacking/find_grafana_versions.py +++ b/hacking/find_grafana_versions.py @@ -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))