From 567e692b903f8771a1c24598f021c41bf50614fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Cantu=C3=A1ria?= Date: Thu, 14 May 2020 14:50:00 -0300 Subject: [PATCH] =?UTF-8?q?Remove=20expedientes=20sem=20conte=C3=BAdos=20d?= =?UTF-8?q?as=20pautas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/sessao/views.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index d1f9f77cd..e13b6bb18 100755 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -3450,11 +3450,11 @@ class PautaSessaoDetailView(DetailView): expedientes = [] for e in expediente: - tipo = e.tipo - conteudo = sub( - ' ', ' ', e.conteudo) - ex = {'tipo': tipo, 'conteudo': conteudo} - expedientes.append(ex) + if e.conteudo: + tipo = e.tipo + conteudo = sub(' ', ' ', e.conteudo) + ex = {'tipo': tipo, 'conteudo': conteudo} + expedientes.append(ex) context.update({'expedientes': expedientes}) # =====================================================================