From 1a5937abc8931e0d54e4350d77711ec4f252f80e Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Mon, 24 Sep 2018 13:10:05 -0300 Subject: [PATCH] HOT-FIX: conserta bug introduzio em 59bc747ba0a31ac95a --- sapl/relatorios/views.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sapl/relatorios/views.py b/sapl/relatorios/views.py index a7af13150..c602e991b 100644 --- a/sapl/relatorios/views.py +++ b/sapl/relatorios/views.py @@ -1103,10 +1103,8 @@ def get_pauta_sessao(sessao, casa): dic_votacao["des_numeracao"] = ' ' - numeracao = Numeracao.objects.filter( - materia=votacao.materia).first() - if numeracao is not None: - numeracao = numeracao.first() + numeracao = Numeracao.objects.filter(materia=votacao.materia).first() + if numeracao: dic_votacao["des_numeracao"] = str( numeracao.numero_materia) + '/' + str(numeracao.ano_materia)