From 80da5a3f40c2012bcefc7e73014ef41a9300562f Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sun, 12 Aug 2012 17:44:31 +0200 Subject: [PATCH] dak/queue_report.py: variables are also used in 'else' branch --- dak/queue_report.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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. -- 2.39.5