From: Guillaume Pellerin Date: Fri, 18 Jul 2014 08:32:05 +0000 (+0200) Subject: fix filename before submitting script X-Git-Tag: 1.1~411 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3a7f8e08ecc460700490e46e0b41075174e582cc;p=teleforma.git fix filename before submitting script --- diff --git a/teleforma/management/commands/teleforma-exam-submit-scripts.py b/teleforma/management/commands/teleforma-exam-submit-scripts.py index 70b9fe70..0c171e8c 100644 --- a/teleforma/management/commands/teleforma-exam-submit-scripts.py +++ b/teleforma/management/commands/teleforma-exam-submit-scripts.py @@ -31,6 +31,7 @@ class Command(BaseCommand): def handle(self, *args, **options): logger = Logger(args[0]) for script in Script.objects.filter(status=2): + script.fix_filename() logger.logger.info(script.title) script.submit() logger.logger.info('OK')