From: Ansgar Burchardt Date: Sun, 12 Aug 2012 15:44:31 +0000 (+0200) Subject: dak/queue_report.py: variables are also used in 'else' branch X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80da5a3f40c2012bcefc7e73014ef41a9300562f;p=dak dak/queue_report.py: variables are also used in 'else' branch --- diff --git a/dak/queue_report.py b/dak/queue_report.py index 8152bfa6..2b501ac0 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -552,9 +552,10 @@ 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"): - total_count = len(queue.uploads) - source_count = len(per_source_items) direction.append([5,1,"ao"]) entries.sort(lambda x, y: sortfunc(x, y)) # Output for a html file. First table header. then table_footer.