调整上传文件名排序规则#570 (#571)

This commit is contained in:
CoolZxp authored and GitHub committed 2023-07-30 04:56:51 +00:00
1 parent 194df2e368
commit 6c8a07dbc3
1 file changed
+1 -1
+1 -1
View File
@@ -32,7 +32,7 @@ class UploadBase:
for file_name in os.listdir('.'):
if index in file_name and os.path.isfile(file_name):
file_list.append(file_name)
file_list = sorted(file_list)
file_list = sorted(file_list, key=lambda x: os.path.getctime(x))
if len(file_list) == 0:
return []