]> git.parisson.com Git - teleforma.git/commitdiff
add date
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 1 Dec 2021 16:45:20 +0000 (17:45 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 1 Dec 2021 16:45:20 +0000 (17:45 +0100)
teleforma/management/commands/teleforma-copy-students.py

index 370af56cd933ee50642098880806dd1740e8c017..f7a60e583cd0d6da195e6c93130f013942e28c06 100644 (file)
@@ -31,7 +31,7 @@ class Command(BaseCommand):
     periods_name = ['Estivale', 'Semestrielle']
     db_from = 'recovery'
     db_to = 'default'
-    logger = Logger('/var/log/app/student_update_from_recovery.log')
+    logger = Logger('/var/log/app/student_update_from_recovery-' + str(datetime.datetime.now) + '.log')
     date_limit_end = datetime.date(year=2021, month=8, day=6)
     date_limit_start = datetime.date(year=2021, month=8, day=1)