From: Gael Le Mignot Date: Thu, 3 Jan 2019 14:05:22 +0000 (+0100) Subject: Fixed bug in close account X-Git-Tag: 1.4.0~11^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8fd1d13fe233dd19554e629f5fb620804b395cb6;p=teleforma.git Fixed bug in close account --- 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