X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fqueue_report.py;h=5e164285d8372599d8537bc922f644a77a99393c;hb=c8182c171aa569945e899566fdf6492cfb166d71;hp=1bef3e55915bd9de7b1b43e04120a69ffe377190;hpb=07f1aa392e54c3d7a0747720c32db2b8aa202a42;p=dak.git diff --git a/dak/queue_report.py b/dak/queue_report.py index 1bef3e55..5e164285 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -117,7 +117,15 @@ def time_pp(x): def sg_compare (a, b): a = a[1] b = b[1] - """Sort by have note, time of oldest upload.""" + """Sort by have pending action, have note, time of oldest upload.""" + # Sort by have pending action + a_note_state = a["processed"] + b_note_state = b["processed"] + if a_note_state < b_note_state: + return -1 + elif a_note_state > b_note_state: + return 1 + # Sort by have note a_note_state = a["note_state"] b_note_state = b["note_state"] @@ -175,7 +183,7 @@ def header(): - + Debian NEW and BYHAND Packages @@ -201,22 +209,22 @@ def header():
- corner image - corner image - corner image - corner image Debian NEW and BYHAND Packages @@ -232,7 +240,7 @@ def footer():