From e0d241d940250b4e8f9583c839b3698030a5c004 Mon Sep 17 00:00:00 2001 From: Lude Ribeiro Date: Fri, 10 Dec 2021 14:09:27 -0300 Subject: [PATCH] tratando telefone --- sigi/apps/servicos/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sigi/apps/servicos/views.py b/sigi/apps/servicos/views.py index 3b41d65..c5b5be7 100644 --- a/sigi/apps/servicos/views.py +++ b/sigi/apps/servicos/views.py @@ -311,15 +311,16 @@ def export_csv(request): lista.append(servico.casa_legislativa.municipio.uf.sigla.encode("utf-8")) 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")) + lista.append(servico.casa_legislativa.telefone) else: lista.append("") elif _(u"Contato Interlegis") == atributo: - lista.append(servico.casa_legislativa.contato_interlegis.encode("utf-8")) if servico.casa_legislativa.contato_interlegis is not None: + lista.append(servico.casa_legislativa.contato_interlegis) lista.append(servico.casa_legislativa.contato_interlegis.email.encode("utf-8")) else: lista.append("") + lista.append("") elif _(u"Produto") == atributo: lista.append(servico.tipo_servico.nome.encode("utf-8")) elif _(u"Data de Ativação") == atributo: