]> git.parisson.com Git - teleforma.git/commitdiff
cleanup media & items
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 25 Feb 2016 21:54:45 +0000 (22:54 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 25 Feb 2016 21:54:45 +0000 (22:54 +0100)
teleforma/management/commands/teleforma-import-seminar-media-update.py

index 67b52edcc4b9d21541331d4e4cf589b8a8903ce8..7f04344d77032cf8fd7216781c87440ab9654190 100644 (file)
@@ -106,7 +106,7 @@ class Command(BaseCommand):
         media_dir = args[2]
         domain = args[3]
         log_file = args[4]
-        
+
         logger = Logger(log_file)
 
         self.site.domain = domain
@@ -120,8 +120,8 @@ class Command(BaseCommand):
 
         # NOT FOR PROD : CLEANUP
         # self.cleanup()
-        #for seminar in Seminar.objects.filter(period=period):
-        #    self.seminar_media_cleanup(seminar)
+        for seminar in Seminar.objects.filter(period=period):
+            self.seminar_media_cleanup(seminar)
 
         walk = os.walk(self.media_dir, followlinks=True)