kdk_handler.py: Fix KDK matching

Use sort order from API
This commit is contained in:
Dhinak G
2024-01-18 21:22:07 -05:00
parent 2bc843dd2f
commit 54b3e17d93

View File

@@ -120,7 +120,7 @@ class KernelDebugKitObject:
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