]> git.parisson.com Git - teleforma.git/commitdiff
bugfix
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 22 Jun 2021 12:02:53 +0000 (14:02 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 22 Jun 2021 12:02:53 +0000 (14:02 +0200)
teleforma/management/commands/teleforma-delete-annotations.py

index 47eede5f5961e2fa67cc16657f60e617b75b7773..4a55ffb4eda39fcd8e9b6e85a10a20668ebb9942 100644 (file)
@@ -30,10 +30,10 @@ class Command(BaseCommand):
 
         scripts = Script.objects.all()
         for annotation_comment in AnnotationComment.objects.all():
-            if not scripts.objects.filter(uuid=annotation_comment.uuid):
+            if not scripts.filter(uuid=annotation_comment.uuid):
                 annotation_comment.delete()
         for annotation in Annotation.objects.all():
-            if not scripts.objects.filter(uuid=annotation.uuid):
+            if not scripts.filter(uuid=annotation.uuid):
                 annotation.delete()