From 498696023f8b004f5775bc7e7fb8917010dd7ec6 Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Tue, 27 Jul 2021 18:11:24 +0800 Subject: [PATCH] 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. --- geninfo/genisolist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geninfo/genisolist.py b/geninfo/genisolist.py index 90187ad..8e27a4e 100755 --- a/geninfo/genisolist.py +++ b/geninfo/genisolist.py @@ -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]