瀏覽代碼

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(':')