diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2015-11-07 16:49:26 +0000 |
---|---|---|
committer | Stephen Finucane <stephen.finucane@intel.com> | 2015-11-12 04:09:49 +0000 |
commit | 11b4333c98c5a6660e32a84584e9a3d0751ffe83 (patch) | |
tree | 38cc2d23c340d898d9638a13958b9275c2ee5acd | |
parent | 87353a4204d0f2a79c500a7ae420c5d1c3aab6e6 (diff) | |
download | patchwork-11b4333c98c5a6660e32a84584e9a3d0751ffe83.tar patchwork-11b4333c98c5a6660e32a84584e9a3d0751ffe83.tar.gz |
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 <damien.lespiau@intel.com>
Acked-by: Stephen Finucane <stephen.finucane@intel.com>
-rw-r--r-- | patchwork/management/commands/retag.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/patchwork/management/commands/retag.py b/patchwork/management/commands/retag.py index 7207f58..2df82e4 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') |