]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
retag: Properly display the final count
authorDamien Lespiau <damien.lespiau@intel.com>
Sat, 7 Nov 2015 16:49:26 +0000 (16:49 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 12 Nov 2015 04:09:49 +0000 (04:09 +0000)
i == count cannot happen in the loop as i will vary from 0 to count - 1.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Acked-by: Stephen Finucane <stephen.finucane@intel.com>
patchwork/management/commands/retag.py

index 7207f58df8e9269ad4a836661b74e6d630597874..2df82e41da525d9fd0a7867fccb0ed5c3c8150ff 100644 (file)
@@ -37,7 +37,7 @@ class Command(BaseCommand):
 
         for i, patch in enumerate(query.iterator()):
             patch.refresh_tag_counts()
-            if (i % 10) == 0 or i == count:
+            if (i % 10) == 0:
                 self.stdout.write('%06d/%06d\r' % (i, count), ending='')
                 self.stdout.flush()
         self.stdout.write('\ndone')