X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fqueue_report.py;h=2b501ac03dc635bb170d1796eb383a5c62ce22ed;hb=43ba23d1d8d69be76915647ea3ea213e5aad4ed6;hp=77e1e53c230d9ff216faf9b5806ac882775e9faa;hpb=09a1a20566dcf84ca229b4339bd8f8080eb59afd;p=dak.git diff --git a/dak/queue_report.py b/dak/queue_report.py index 77e1e53c..2b501ac0 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -552,14 +552,15 @@ def process_queue(queue, log, rrd_dir): log.write("Changes-File: " + os.path.basename(changes_file) + "\n") log.write("\n") + total_count = len(queue.uploads) + source_count = len(per_source_items) + if Cnf.has_key("Queue-Report::Options::New"): direction.append([5,1,"ao"]) entries.sort(lambda x, y: sortfunc(x, y)) # Output for a html file. First table header. then table_footer. # Any line between them is then a printed from subroutine table_row. if len(entries) > 0: - total_count = len(changes_files) - source_count = len(per_source_items) table_header(type.upper(), source_count, total_count) for entry in entries: (source, binary, version_list, arch_list, note, last_modified, maint, distribution, closes, fingerprint, sponsor, changedby, undef) = entry @@ -575,8 +576,6 @@ def process_queue(queue, log, rrd_dir): msg += format % (source, version_list, arch_list, note, time_pp(last_modified)) if msg: - total_count = len(queue.uploads) - source_count = len(per_source_items) print type.upper() print "-"*len(type) print