X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dak%2Fqueue_report.py;h=422672b7e99be6c9fa466a1fd7b22336ba4132b9;hb=f01b13ab05dcfc8ccebb8eaba3362f70b3018809;hp=882eab2a82ebe4d2e04c259d4ff62cff60ee6adc;hpb=9c5008e9f4a416cbbe5dbaa1fec3741c941225b1;p=dak.git diff --git a/dak/queue_report.py b/dak/queue_report.py index 882eab2a..422672b7 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():
- +