From 10aa5085aca60c255a70f19685a97fc851f4e50f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Mon, 5 Feb 2024 16:52:57 -0300 Subject: [PATCH] Muda para 30 dias o prazo de permanencia nos eventos publicados no portal --- sigi/apps/eventos/jobs/daily/encerra_inscricao.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sigi/apps/eventos/jobs/daily/encerra_inscricao.py b/sigi/apps/eventos/jobs/daily/encerra_inscricao.py index 9a058f3..3670cf1 100644 --- a/sigi/apps/eventos/jobs/daily/encerra_inscricao.py +++ b/sigi/apps/eventos/jobs/daily/encerra_inscricao.py @@ -17,7 +17,7 @@ class Job(JobReportMixin, DailyJob): def do_job(self): hoje = timezone.localtime().replace(hour=23, minute=59, second=59) - anteontem = hoje - timezone.timedelta(days=3) + retroagir = hoje - timezone.timedelta(days=30) encerrar_inscricao = ( Evento.objects.exclude(publicar=False) @@ -38,7 +38,7 @@ class Job(JobReportMixin, DailyJob): ) despublicar = Evento.objects.exclude(publicar=False).filter( - data_termino__lte=anteontem + data_termino__lte=retroagir ) self.report_data.append(_("Despublicados"))