]> git.0d.be Git - django-panik-nonstop.git/commitdiff
make --all flag of compute-durations effective
authorFrédéric Péters <fpeters@0d.be>
Sun, 17 May 2020 17:22:26 +0000 (19:22 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sun, 17 May 2020 17:22:26 +0000 (19:22 +0200)
nonstop/management/commands/compute_durations.py

index 1fe11e384186a48ff755c919f6f7e4b479d36a31..7fe97b8f3c17997729b31ee7d2edab12ef888810 100644 (file)
@@ -20,7 +20,7 @@ class Command(BaseCommand):
                 help='Recompute existing durations')
 
     def handle(self, verbosity, **kwargs):
-        qs = Track.objects.filter(duration__isnull=True)
+        qs = Track.objects.all()
         if not kwargs.get('force'):
             qs = qs.filter(duration__isnull=True)
         if kwargs.get('recent'):