From c92778d032f7b41d288e02ec26a4a6ba8496b569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Rodrigues?= Date: Tue, 15 Sep 2020 12:43:47 -0300 Subject: [PATCH] =?UTF-8?q?Fix=20#3217:=20corre=C3=A7=C3=A3o=20de=20funcio?= =?UTF-8?q?nalidade?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/materia/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index fbfdc1926..20bde16ca 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -1739,7 +1739,7 @@ class MateriaLegislativaCrud(Crud): ) ] numeros.sort() - numero = numeros[len(numeros)-1] + 1 + numero = numeros[len(numeros)-1] + 1 if numeros else 1 Numeracao.objects.create( materia=self.object, tipo_materia=tipo_materia, @@ -1749,7 +1749,7 @@ class MateriaLegislativaCrud(Crud): elif config == "U": numeros = [ int(n.numero_materia) for n in Numeracao.objects.all() ] numeros.sort() - numero = numeros[len(numeros)-1] + 1 + numero = numeros[len(numeros)-1] + 1 if numeros else 1 Numeracao.objects.create( materia=self.object, tipo_materia=tipo_materia,