From 54b3e17d93ea5566763c11ef2511588427a0e485 Mon Sep 17 00:00:00 2001 From: Dhinak G <17605561+dhinakg@users.noreply.github.com> Date: Thu, 18 Jan 2024 21:22:07 -0500 Subject: [PATCH] kdk_handler.py: Fix KDK matching Use sort order from API --- resources/kdk_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/kdk_handler.py b/resources/kdk_handler.py index 705c6004d6..0306a5e475 100644 --- a/resources/kdk_handler.py +++ b/resources/kdk_handler.py @@ -120,7 +120,7 @@ def _get_remote_kdks(self) -> list or None: logging.info("Could not fetch KDK list") return None - KDK_ASSET_LIST = sorted(results.json(), key=lambda x: (packaging.version.parse(x["version"]), datetime.datetime.fromisoformat(x["date"])), reverse=True) + KDK_ASSET_LIST = results.json() return KDK_ASSET_LIST