From c4046aa7b7ded5f95ac639b8204d826ffa3abd1c Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Wed, 22 Jun 2016 12:33:59 -0300 Subject: [PATCH] =?UTF-8?q?Ajusta=20script=20de=20anonimiza=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/anonimizador/anon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/anonimizador/anon.py b/scripts/anonimizador/anon.py index c91be10cd..2711f0114 100644 --- a/scripts/anonimizador/anon.py +++ b/scripts/anonimizador/anon.py @@ -11,7 +11,7 @@ from sapl.norma.models import AssuntoNorma from sapl.parlamentares.models import Municipio, NivelInstrucao, Partido from sapl.settings import SAPL_APPS -sapl_appconfs = [apps.get_app_config(n) for n in SAPL_APPS] +sapl_appconfs = [apps.get_app_config(n.split('.')[1]) for n in SAPL_APPS] models = [model for app in sapl_appconfs for model in app.get_models()] excluidos = Origem, Orgao, AssuntoNorma, Partido, NivelInstrucao, Municipio,