]> git.parisson.com Git - teleforma.git/commitdiff
log seminars only when treated
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 7 Jan 2014 22:14:42 +0000 (23:14 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 7 Jan 2014 22:14:42 +0000 (23:14 +0100)
teleforma/management/commands/teleforma-import-seminar-media.py

index eaa410b2173e3ce7e0a9026935afcdd16959e4d3..ff0084fe71708eeb13f6b1094cca05872a6d14a8 100644 (file)
@@ -155,12 +155,12 @@ class Command(BaseCommand):
                             exist = True
                             break
                     
-                    if not seminar in seminars:
-                        seminars.append(seminar)
-
                     if not exist:
                         logger.logger.info(seminar.public_url())
                         logger.logger.info(path)
+                        if not seminar in seminars:
+                            seminars.append(seminar)
+
                         collections = MediaCollection.objects.filter(code=collection_id)
                         if not collections:
                             collection = MediaCollection(code=collection_id,title=collection_id)