From: Guillaume Pellerin Date: Wed, 1 Dec 2021 16:45:20 +0000 (+0100) Subject: add date X-Git-Tag: 2.5.1~23^2~1 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8aeb38b28b4b5896b5516659a925c4c95e432d38;p=teleforma.git add date --- diff --git a/teleforma/management/commands/teleforma-copy-students.py b/teleforma/management/commands/teleforma-copy-students.py index 370af56c..f7a60e58 100644 --- a/teleforma/management/commands/teleforma-copy-students.py +++ b/teleforma/management/commands/teleforma-copy-students.py @@ -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)