From 8fd1d13fe233dd19554e629f5fb620804b395cb6 Mon Sep 17 00:00:00 2001 From: Gael Le Mignot Date: Thu, 3 Jan 2019 15:05:22 +0100 Subject: [PATCH] Fixed bug in close account --- teleforma/management/commands/teleforma-close-accounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/management/commands/teleforma-close-accounts.py b/teleforma/management/commands/teleforma-close-accounts.py index 697cd7e2..3ae3cf56 100644 --- a/teleforma/management/commands/teleforma-close-accounts.py +++ b/teleforma/management/commands/teleforma-close-accounts.py @@ -9,7 +9,7 @@ class Command(BaseCommand): def handle(self, *args, **options): today = datetime.date.today() - for period in Period.objects.filter(date_close_accounts__gte = today): + for period in Period.objects.filter(date_close_accounts__lte = today): for student in period.student.filter(user__is_active = True): print "Closing %s %s" % (student, student.user_id) student.user.is_active = False -- 2.39.5