From: Damien Lespiau Date: Sat, 7 Nov 2015 16:49:26 +0000 (+0000) Subject: retag: Properly display the final count X-Git-Tag: v1.1.0~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11b4333c98c5a6660e32a84584e9a3d0751ffe83;p=thirdparty%2Fpatchwork.git retag: Properly display the final count i == count cannot happen in the loop as i will vary from 0 to count - 1. Signed-off-by: Damien Lespiau Acked-by: Stephen Finucane --- diff --git a/patchwork/management/commands/retag.py b/patchwork/management/commands/retag.py index 7207f58d..2df82e41 100644 --- a/patchwork/management/commands/retag.py +++ b/patchwork/management/commands/retag.py @@ -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')