X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dak%2Fqueue_report.py;h=422672b7e99be6c9fa466a1fd7b22336ba4132b9;hb=55513d80673e99884067b8820ca1a0b3e9aeeeef;hp=2b501ac03dc635bb170d1796eb383a5c62ce22ed;hpb=f308b558967796bd5a43013346d8b204592d9b93;p=dak.git diff --git a/dak/queue_report.py b/dak/queue_report.py index 2b501ac0..422672b7 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -45,7 +45,9 @@ except ImportError: from daklib import utils from daklib.dbconn import DBConn, DBSource, has_new_comment, PolicyQueue, \ get_uid_from_fingerprint +from daklib.policy import PolicyQueueUploadHandler from daklib.textutils import fix_maintainer +from daklib.utils import get_logins_from_ldap from daklib.dak_exceptions import * Cnf = None @@ -115,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"] @@ -173,7 +183,7 @@ def header():
- +