mirror of
https://github.com/SouthFox-D/SouthFox-D.github.io.git
synced 2024-11-25 00:16:52 +01:00
[feat/utils] sorted imges list
This commit is contained in:
parent
2ed17c110f
commit
2d374d8eba
1 changed files with 1 additions and 1 deletions
2
utils.py
2
utils.py
|
@ -122,7 +122,7 @@ def backupImg():
|
||||||
os.makedirs('./newimg')
|
os.makedirs('./newimg')
|
||||||
|
|
||||||
nowImgJson = {}
|
nowImgJson = {}
|
||||||
nowImgJson["img"] = nowImgList
|
nowImgJson["img"] = sorted(nowImgList)
|
||||||
with open('./newimg/imgList.json', 'w', encoding='utf-8') as f:
|
with open('./newimg/imgList.json', 'w', encoding='utf-8') as f:
|
||||||
json.dump(nowImgJson, f)
|
json.dump(nowImgJson, f)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue