From bc9a8e77c925df0906c8d8cc40c33038da822f8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Tue, 24 Oct 2023 09:02:35 -0300 Subject: [PATCH] =?UTF-8?q?Ajusta=20criterio=20de=20sele=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/eventos/jobs/daily/encerra_inscricao.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigi/apps/eventos/jobs/daily/encerra_inscricao.py b/sigi/apps/eventos/jobs/daily/encerra_inscricao.py index d9c8638..709f501 100644 --- a/sigi/apps/eventos/jobs/daily/encerra_inscricao.py +++ b/sigi/apps/eventos/jobs/daily/encerra_inscricao.py @@ -21,7 +21,7 @@ class Job(JobReportMixin, DailyJob): encerrar_inscricao = ( Evento.objects.exclude(publicar=False) - .filter(data_inicio__gte=hoje) + .filter(data_inicio__lte=hoje) .exclude(chave_inscricao=INSCRICOES_ENCERRADAS) ) encerrar_inscricao.update(chave_inscricao=INSCRICOES_ENCERRADAS)