X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fqueue_report.py;h=5e164285d8372599d8537bc922f644a77a99393c;hb=c8182c171aa569945e899566fdf6492cfb166d71;hp=cb5c05eda0813632553274876fc64601a70b287a;hpb=81816f8c1be86651dd5200440ab09caccf1460b2;p=dak.git diff --git a/dak/queue_report.py b/dak/queue_report.py index cb5c05ed..5e164285 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -43,9 +43,11 @@ except ImportError: pass from daklib import utils -from daklib.queue import Upload -from daklib.dbconn import DBConn, has_new_comment, DBChange, DBSource, get_uid_from_fingerprint +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,11 +183,12 @@ def header(): - + Debian NEW and BYHAND Packages
- corner image - corner image - corner image - corner image Debian NEW and BYHAND Packages @@ -228,7 +240,7 @@ def footer():