From 3cabd881b5511150d1a4b2e31890a1b094dbd6dd Mon Sep 17 00:00:00 2001 From: Lude Ribeiro Date: Fri, 10 Dec 2021 14:00:29 -0300 Subject: [PATCH] tratando telefone --- sigi/apps/servicos/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sigi/apps/servicos/views.py b/sigi/apps/servicos/views.py index 489a199..04ec597 100644 --- a/sigi/apps/servicos/views.py +++ b/sigi/apps/servicos/views.py @@ -309,11 +309,11 @@ def export_csv(request): if _(u"Casa Legislativa") == atributo: lista.append(servico.casa_legislativa.nome.encode("utf-8")) lista.append(servico.casa_legislativa.municipio.uf.sigla.encode("utf-8")) - if servico.casa_legislativa.contato_interlegis is not None: - lista.append(servico.casa_legislativa.email.encode("utf-8")) - else: + lista.append(servico.casa_legislativa.email.encode("utf-8")) + if servico.casa_legislativa.telefone is not None: + lista.append(servico.casa_legislativa.telefone.encode("utf-8")) + else lista.append("") - lista.append(servico.casa_legislativa.telefone.encode("utf-8")) elif _(u"Contato Interlegis") == atributo: lista.append(servico.casa_legislativa.contato_interlegis.encode("utf-8")) if servico.casa_legislativa.contato_interlegis is not None: