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))