mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
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:
parent
0031b3ecc0
commit
498696023f
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue