]> git.parisson.com Git - teleforma.git/commitdiff
bugfix
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Tue, 30 Nov 2021 15:37:17 +0000 (16:37 +0100)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Tue, 30 Nov 2021 15:37:17 +0000 (16:37 +0100)
bin
teleforma/management/commands/teleforma-copy-students.py

diff --git a/bin b/bin
index edd46124d392ae27b88eab49d371286e8b6b9e2e..52d01bc8d0ec34d96ae3751fa5709a8ae05066fd 160000 (submodule)
--- a/bin
+++ b/bin
@@ -1 +1 @@
-Subproject commit edd46124d392ae27b88eab49d371286e8b6b9e2e
+Subproject commit 52d01bc8d0ec34d96ae3751fa5709a8ae05066fd
index dbaf1a3872c3fe7fe7502baad7bd9f47d4d150ea..296a05d59a9e0b19b665045af023f0d31f1d611b 100644 (file)
@@ -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