From 62103891d6c7f29e756bd2cef9b4dcfd0f0a3210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Sconetto?= Date: Thu, 9 Nov 2017 12:15:00 -0200 Subject: [PATCH] HOT FIX --- sapl/painel/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sapl/painel/views.py b/sapl/painel/views.py index 9682b5b01..500f4b8ac 100644 --- a/sapl/painel/views.py +++ b/sapl/painel/views.py @@ -319,6 +319,9 @@ def get_presentes(pk, response, materia): 'voto': '' }) + elif not p.parlamentar.ativo or not mandatos: + num_presentes += -1 + if materia: if materia.tipo_votacao == 1: tipo_votacao = 'Simbólica'