mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 22:50:51 +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")
|
logging.info("Could not fetch KDK list")
|
||||||
return None
|
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
|
return KDK_ASSET_LIST
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user