]> err.no Git - dak/commitdiff
dak/queue_report.py: variables are also used in 'else' branch
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 15:44:31 +0000 (17:44 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 15:44:31 +0000 (17:44 +0200)
dak/queue_report.py

index 8152bfa63e7e9c4cabe85754dc8a7aa1059bc334..2b501ac03dc635bb170d1796eb383a5c62ce22ed 100755 (executable)
@@ -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.