From 11b4333c98c5a6660e32a84584e9a3d0751ffe83 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Sat, 7 Nov 2015 16:49:26 +0000 Subject: [PATCH] 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 --- patchwork/management/commands/retag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.47.3