]> git.parisson.com Git - teleforma.git/commitdiff
fix import type
authoryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 16:07:52 +0000 (18:07 +0200)
committeryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 16:07:52 +0000 (18:07 +0200)
teleforma/management/commands/teleforma-import-conferences.py

index ff7622614e54ed5619a0ab870de0aa303335f29c..f97281d5e7802ae17479e378c1cc227e0a8688a5 100644 (file)
@@ -117,8 +117,8 @@ class Command(BaseCommand):
 
                         files = os.listdir(root)
                         for file in files:
-                            filename, ext = os.path.splitext(file)
-                            if ext[1:] in self.image_formats:
+                            filename, extension = os.path.splitext(file)
+                            if extension[1:] in self.image_formats:
                                 related = MediaItemRelated(item=item)
                                 related.file = dir + os.sep + file
                                 related.title = 'preview'