From ad73f26d0fbff7d23327dbe9ce9a2072643d92cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Wed, 2 Jun 2021 00:43:20 -0300 Subject: [PATCH] =?UTF-8?q?Filtrar=20apenas=20servi=C3=A7os=20ativos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/metas/views.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sigi/apps/metas/views.py b/sigi/apps/metas/views.py index 58b98a6..578653d 100644 --- a/sigi/apps/metas/views.py +++ b/sigi/apps/metas/views.py @@ -83,9 +83,6 @@ def openmapdata(request): gerentes = request.GET.getlist('gerente', None) reptype = request.GET.get('reptype', None) - print reptype - print request.GET - dados = Orgao.objects.all() if tipos_orgao: @@ -97,7 +94,8 @@ def openmapdata(request): if "none" in tipos_servico: dados = dados.filter(servico=None) else: - dados = dados.filter(servico__tipo_servico__sigla__in=tipos_servico) + dados = dados.filter(servico__tipo_servico__sigla__in=tipos_servico, + servico__data_desativacao=None) if tipos_convenio: if "none" in tipos_convenio: