]> git.parisson.com Git - teleforma.git/commitdiff
fix import
authoryomguy <yomguy@parisson.com>
Mon, 14 Jan 2013 16:55:27 +0000 (17:55 +0100)
committeryomguy <yomguy@parisson.com>
Mon, 14 Jan 2013 16:55:27 +0000 (17:55 +0100)
teleforma/management/commands/teleforma-import-seminars.py

index bc233583ce49d3c368ca34818e6b6e39d8515d8f..2e8d9e22701dd2bed51eee84c7f8951d82173b3e 100644 (file)
@@ -72,7 +72,7 @@ class Command(BaseCommand):
                 root_list = root.split(os.sep)
 
                 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] != '.':
                                         # seminar_rank <= 9
                     seminar_rank = int(root_list[-1][0])
                     if len(root_list[-1]) != 1: