Quellcode durchsuchen

sort status table

Andrew Tridgell vor 4 Jahren
Ursprung
Commit
3816ab3a4c
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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(':')