]> git.parisson.com Git - teleforma.git/commitdiff
Merge branch 'release/next' into dev
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 23 Jun 2021 15:58:07 +0000 (17:58 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 23 Jun 2021 15:58:07 +0000 (17:58 +0200)
1  2 
teleforma/management/commands/teleforma-delete-annotations.py
teleforma/management/commands/teleforma-export-wifi-accounts.py

index 81088ce6ee8dcc4d9539b1c624fcd5cd9fed767c,4a55ffb4eda39fcd8e9b6e85a10a20668ebb9942..06f2d54c3f831dc54255148be7d02b2cc2bfecf7
@@@ -28,4 -28,13 +28,11 @@@ class Command(BaseCommand)
                  annotation_comment.delete()
              script.delete()
  
-         
+         scripts = Script.objects.all()
+         for annotation_comment in AnnotationComment.objects.all():
+             if not scripts.filter(uuid=annotation_comment.uuid):
+                 annotation_comment.delete()
+         for annotation in Annotation.objects.all():
+             if not scripts.filter(uuid=annotation.uuid):
+                 annotation.delete()
 -
 -