Reverse sorting of images

The sort() here without reversing is not consistent with the sort() in
parseSection. This effectively puts oldest images first which is not
desirable.
This commit is contained in:
Felix Yan 2021-07-27 18:11:24 +08:00
parent 0031b3ecc0
commit 498696023f
No known key found for this signature in database
GPG Key ID: 786C63F330D7CB92

View File

@ -164,7 +164,7 @@ def getImageList():
url_dict = {}
for distro, images in img_dict.items():
images.sort(key=lambda x: x['sort_key'])
images.sort(key=lambda x: x['sort_key'], reverse=True)
logger.debug("[IMAGES] %r %r", distro, images)
url_dict[distro] = [getDetail(image, urlbase) for image in images]