mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-13 20:28:21 +10:00
kdk_handler.py: Fix KDK matching
Use sort order from API
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user