Skip to content

Commit

Permalink
kdk_handler.py: Fix KDK matching
Browse files Browse the repository at this point in the history
Use sort order from API
  • Loading branch information
dhinakg committed Jan 19, 2024
1 parent 2bc843d commit 54b3e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/kdk_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 54b3e17

Please sign in to comment.