]> git.parisson.com Git - teleforma.git/commitdiff
print file only if added
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 10 Jan 2014 13:26:16 +0000 (14:26 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 10 Jan 2014 13:26:16 +0000 (14:26 +0100)
teleforma/management/commands/teleforma-import-seminar-media.py

index ff0084fe71708eeb13f6b1094cca05872a6d14a8..6d4b71e386c95ba14ac09ec2043177b49b748823 100644 (file)
@@ -114,8 +114,6 @@ class Command(BaseCommand):
 
                 if ext in self.original_format and not 'preview' in root_list \
                             and not 'preview' in filename and not 'Preview' in filename and filename[0] != '.':
-
-                    print filename
                     
                     # seminar_rank <= 9
                     seminar_rank = int(root_list[-1][0])
@@ -156,6 +154,7 @@ class Command(BaseCommand):
                             break
                     
                     if not exist:
+                        print root + filename
                         logger.logger.info(seminar.public_url())
                         logger.logger.info(path)
                         if not seminar in seminars: