diff options
| -rw-r--r-- | ishtar_common/management/commands/update_search_vectors.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/ishtar_common/management/commands/update_search_vectors.py b/ishtar_common/management/commands/update_search_vectors.py index 59166fba7..a07da721e 100644 --- a/ishtar_common/management/commands/update_search_vectors.py +++ b/ishtar_common/management/commands/update_search_vectors.py @@ -21,7 +21,7 @@ class Command(BaseCommand):      def handle(self, *args, **options):          quiet = options['quiet'] -        total = 0 +        nb_total = 0          for model in django.apps.apps.get_models():              if options['model'] and model.__name__ != options['model']:                  continue @@ -42,7 +42,7 @@ class Command(BaseCommand):                          item.update_search_vector()                      except:                          pass -                total += idx +                nb_total += idx          if not quiet:              self.stdout.write("\n") -        self.stdout.write("{} items updated\n".format(total)) +        self.stdout.write("{} items updated\n".format(nb_total)) | 
