]> git.parisson.com Git - teleforma.git/commitdiff
ident
authorGuillaume Pellerin <yomguy@parisson.com>
Sat, 19 Jul 2014 20:41:08 +0000 (22:41 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sat, 19 Jul 2014 20:41:08 +0000 (22:41 +0200)
teleforma/management/commands/teleforma-exam-submit-scripts.py

index 4e4c99cf7c47ccc32991573a0e600e4ec35e4a9f..5d0970da30574034e88380e249746f3201367a4b 100644 (file)
@@ -33,12 +33,12 @@ class Command(BaseCommand):
         for script in Script.objects.filter(status=2):
             logger.logger.info(script.title)
             if script.file:
-                   script.fix_filename()
-                   try:
-                       script.submit()
-                   except:
-                       logger.logger.error('ERROR')
-                   logger.logger.info('OK')
-                   time.sleep(30)
-               else:
-                       print unicode(script)
+                script.fix_filename()
+                try:
+                    script.submit()
+                except:
+                    logger.logger.error('ERROR')
+                logger.logger.info('OK')
+                time.sleep(30)
+            else:
+                print unicode(script)