소스 검색

sort status table

Andrew Tridgell 4 년 전
부모
커밋
3816ab3a4c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app.py

+ 1 - 0
app.py

@@ -220,6 +220,7 @@ def get_build_status():
     for b in os.listdir(outdir_parent):
         if os.path.isdir(os.path.join(outdir_parent,b)):
             blist.append(b)
+    blist.sort(key=lambda x: os.path.getmtime(os.path.join(outdir_parent,x)), reverse=True)
 
     for b in blist:
         a = b.split(':')