From 51b350e1976f1275c83cbe9dd4d058150e0e1b6e Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 30 Nov 2021 16:37:17 +0100 Subject: [PATCH] bugfix --- bin | 2 +- teleforma/management/commands/teleforma-copy-students.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin b/bin index edd46124..52d01bc8 160000 --- a/bin +++ b/bin @@ -1 +1 @@ -Subproject commit edd46124d392ae27b88eab49d371286e8b6b9e2e +Subproject commit 52d01bc8d0ec34d96ae3751fa5709a8ae05066fd diff --git a/teleforma/management/commands/teleforma-copy-students.py b/teleforma/management/commands/teleforma-copy-students.py index dbaf1a38..296a05d5 100644 --- a/teleforma/management/commands/teleforma-copy-students.py +++ b/teleforma/management/commands/teleforma-copy-students.py @@ -85,7 +85,7 @@ class Command(BaseCommand): for payment in payments: date_created = deepcopy(payment.date_created) - if date_created >= date_limit: + if date_created >= self.date_limit: payment.pk = None payment.save(using=self.db_to) payment.student = student -- 2.39.5