From 2d374d8eba866e59539e736323db7b48746ea262 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Fri, 4 Oct 2024 16:29:48 +0800 Subject: [PATCH] [feat/utils] sorted imges list --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index c051374..5e23c1f 100644 --- a/utils.py +++ b/utils.py @@ -122,7 +122,7 @@ def backupImg(): os.makedirs('./newimg') nowImgJson = {} - nowImgJson["img"] = nowImgList + nowImgJson["img"] = sorted(nowImgList) with open('./newimg/imgList.json', 'w', encoding='utf-8') as f: json.dump(nowImgJson, f)