X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fqueue_report.py;h=a7086d897a68c54ffc4232bc429c616eb72465e6;hb=a03000ae4e256bea70875b51eaecf2ad4c7336a5;hp=3a98df5837e55a33bb9956460d0e36533ddeaeab;hpb=fed896b01d7248f42a2218844da6da180bd33e38;p=dak.git diff --git a/dak/queue_report.py b/dak/queue_report.py index 3a98df58..a7086d89 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():
- +